{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"テーブルスキーマの変更またはカスタマイズ","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"テーブルスキーマの変更またはカスタマイズ","__idx":0},"children":["テーブルスキーマの変更またはカスタマイズ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テーブルの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/data-workbench/databases/schema-management"},"children":["スキーマ管理"]},"を更新するには、2つの方法があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-の使用","__idx":1},"children":["Treasure コンソール の使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スキーマを手動で更新するには、次の手順に従います："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール を開きます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Databases"]}," に移動します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スキーマを変更するデータベースを選択します。"," ","例：test_db または："]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200827-003304.3bfad70b9a5d739de38252750160786a4865d5d93105e48c9f17c369c3e8a51b.4c190181.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["テーブルを選択します。"," ","例："]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200827-004729.2046a096a96af4ded16a15ee90994eec1585f3bdde5e021ea351792ec6af1965.4c190181.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Column"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200827-004821.c1caa0943e4d8f021ecc7231c679d762a879a26cdc87f5f1ffec3230fb3f3ed4.4c190181.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["テーブルのメタデータの詳細を指定します。"," ","例："]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200827-010304.b851e4ff0c83e13372fe38d4a611479966c15456ce47ed960375a64262029044.4c190181.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、スキーマとメタデータのカスタマイズを続けるには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Edit Schema"]}," を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200827-010428.c9cf9d76c91134fb2ca71d84d3ea0e2af4ab18a441fb6c1aaa40a9818e4f6541.4c190181.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、スキーマとメタデータのカスタマイズを続けるには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Column"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、テーブルから列を削除するには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Edit Schema"]}," を選択し、ページの右端にある ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["x"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["… > Table Settings"]}," を選択します。"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200827-011034.eb96d55c9fc2ebdd96a8285fed23a404223bfd458b1dc5b24316a10002ca8be5.4c190181.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":12},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Edit Settings"]}," で選択を行います。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オプションで、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Confirm"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スキーマの変更が完了したら ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," を選択します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-cli-ツールの使用","__idx":2},"children":["Treasure CLI ツールの使用"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["あるいは、td schema:set コマンドを使用できます"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<column_name>"]}," は小文字のアルファベット、数字、および \"_\" のみで構成されます"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<type>"]}," は次のいずれかにできます：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["long"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["double"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["float"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["array<T>"]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td schema:set <database> <table> <column_name>:<type>...\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、スキーマは次のように追加されます："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td schema:set testdb www_access action:string labels:'array<string>' user:int\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["使用可能なデータ型については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/data-workbench/databases/td-native-data-types"},"children":["TD Native Data Types"]},"を参照してください。"]}]},"headings":[{"value":"テーブルスキーマの変更またはカスタマイズ","id":"テーブルスキーマの変更またはカスタマイズ","depth":1},{"value":"Treasure コンソール の使用","id":"treasure-コンソール-の使用","depth":2},{"value":"Treasure CLI ツールの使用","id":"treasure-cli-ツールの使用","depth":2}],"frontmatter":{"seo":{"title":"テーブルスキーマの変更またはカスタマイズ"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/data-workbench/databases/modifying-the-table-schema","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}