테이블에 행을 삽입하고 삽입 결과를 보도록 수정하는 템플릿 INSERT 및 SELECT 문이 포함된 새 쿼리 탭이 있는 테이블의 Spanner Studio 페이지가 Google Cloud 콘솔에 표시됩니다.
INSERT 문을 원하는 값으로 수정하고 SELECT 문의 WHERE 절을 삽입하려는 행의 기본 키 값과 일치하도록 수정합니다.
Spanner가 지원하는 구문에 대한 자세한 내용은 INSERT 문 및 리터럴을 참조하세요.
실행을 클릭합니다.
Spanner가 문을 실행합니다.
데이터 수정
테이블의 데이터 페이지에서 편집할 행을 선택한 후 수정을 클릭합니다.
테이블의 행을 업데이트하고 업데이트 결과를 보도록 수정하는 템플릿 UPDATE 및 SELECT 문이 포함된 새 쿼리 탭이 있는 테이블의 Spanner Studio 페이지가 Google Cloud 콘솔에 표시됩니다.
두 문의 WHERE 절은 사용자가 수정하기 위해 선택한 행을 나타냅니다.
업데이트 내용이 반영되도록 UPDATE 문을 수정합니다.
Spanner가 지원하는 구문에 대한 자세한 내용은 UPDATE 문 및 리터럴을 참조하세요.
실행을 클릭합니다.
Spanner가 문을 실행합니다.
데이터 삭제
테이블의 데이터 페이지에서 삭제할 행을 한 개 이상 선택한 후 삭제를 클릭합니다.
행을 찾기 어려우면 필터 상자에 기본 키를 입력합니다.
삭제를 클릭한 후 나타나는 대화상자에서 확인을 클릭합니다.
Google Cloud 콘솔에 삭제된 행이 더 이상 포함되지 않는 테이블의 데이터가 표시됩니다.
Spanner 테이블의 데이터를 삽입 및 수정하는 대화식 예는 빠른 시작: 콘솔 사용을 참조하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-05(UTC)"],[],[],null,["# Insert and modify data using the Google Cloud console\n\nThe Google Cloud console provides an interface for inserting, editing, and deleting\ndata in a Spanner table.\n\nFind a table\n------------\n\nTo get started, select to view a Spanner table in the\nGoogle Cloud console.\n\n1. Go to the **Spanner** page in the Google Cloud console.\n\n [Go to the Spanner page](https://console.cloud.google.com/spanner)\n2. Click the name of an instance. The instance overview page is displayed.\n\n3. Under the **Databases** list on this page, click the name of a database.\n\n4. Under **Tables**, click the name of a table.\n\n5. In the left pane of the Google Cloud console, click **Data**.\n\nInsert data\n-----------\n\n| **Note:** Spanner Studio (formerly labeled **Query** in the Google Cloud console) supports SQL, DML, and DDL operations in a single editor. For more information, see [Manage your data using the Google Cloud console](/spanner/docs/manage-data-using-console).\n\n1. On the table's **Data** page, click **Insert**.\n\n The Google Cloud console displays the table's Spanner Studio page\n with a new query tab containing template `INSERT` and `SELECT` statements\n that you edit to insert a row in the table and view the result of that\n insertion.\n2. Edit the `INSERT` statement to the values you want, and edit the `SELECT`\n statement's `WHERE` clause to match the primary key value of the row you are\n inserting.\n\n See [INSERT statement](/spanner/docs/reference/standard-sql/dml-syntax#insert-statement) and\n [Literals](/spanner/docs/reference/standard-sql/lexical#literals) for information about the syntax\n Spanner supports.\n3. Click **Run**.\n\n Spanner runs the statements.\n\nEdit data\n---------\n\n1. On the table's **Data** page, select the row you want to\n edit, then click **Edit**.\n\n The Google Cloud console displays the table's **Spanner Studio** page\n with a new query tab containing template `UPDATE` and `SELECT` statements\n that you edit to update the row in the table and view the result of that\n update.\n Note that the `WHERE` clauses of both statements denote the row you selected\n to edit.\n2. Edit the `UPDATE` statement to reflect the updates you want to make.\n\n See [UPDATE statement](/spanner/docs/reference/standard-sql/dml-syntax#update-statement) and\n [Literals](/spanner/docs/reference/standard-sql/lexical#literals) for information about the syntax\n Spanner supports.\n3. Click **Run**.\n\n Spanner runs the statements.\n\nDelete data\n-----------\n\n| **Note:** Deleting a row will also delete its child rows if the child rows have `ON\n| DELETE CASCADE` enabled. However, if the child rows do not have this setting enabled, you will first have to delete all the child rows in order to delete the parent row.\n\n1. On the table's **Data** page, select one or more rows that you want to delete,\n then click **Delete**.\n\n Need help finding a row? Type its primary key into the filter box.\n2. In the dialog that appears after you click **Delete** , click **CONFIRM**.\n\n The Google Cloud console displays the data from your table, which no\n longer contains the deleted rows.\n\nFor an interactive example of inserting and modifying data in a Spanner\ntable, see the [Quickstart using the console](/spanner/docs/create-query-database-console)."]]