Haz clic en el nombre de una instancia. Se mostrará la página de descripción general de la instancia.
En la lista Bases de datos de esta página, haz clic en el nombre de una base de datos.
En Tablas (Tables), haz clic en el nombre de una tabla.
En el panel izquierdo de la Google Cloud consola, haz clic en Datos.
Inserta datos
En la página Datos de la tabla, haz clic en Insertar.
La Google Cloud consola muestra la página de Spanner Studio de la tabla con una pestaña de consulta nueva que contiene las instrucciones INSERT y SELECT de plantilla que editas para insertar una fila en la tabla y ver el resultado de esa inserción.
Edita la sentencia INSERT con los valores que quieras y la cláusula WHERE de la sentencia SELECT para que coincida con el valor de clave principal de la fila que insertas.
Consulta Sentencia INSERT y Literales para obtener información sobre la sintaxis que admite Spanner.
Haz clic en Ejecutar.
Spanner ejecuta las instrucciones.
Editar datos
En la página Datos de la tabla, selecciona la fila que deseas editar y haz clic en Editar.
La Google Cloud consola muestra la página Spanner Studio de la tabla con una pestaña de consulta nueva que contiene las instrucciones UPDATE y SELECT de plantilla que editas para actualizar la fila de la tabla y ver el resultado de esa actualización.
Ten en cuenta que las cláusulas WHERE de ambas sentencias denotan la fila que seleccionaste para editar.
Edita la sentencia UPDATE para reflejar las actualizaciones que deseas realizar.
Consulta Sentencia UPDATE y Literales para obtener información sobre la sintaxis que admite Spanner.
Haz clic en Ejecutar.
Spanner ejecuta las instrucciones.
Borra datos
En la página Datos de la tabla, selecciona una o más filas que desees borrar y, luego, haz clic en Borrar.
¿Necesitas ayuda para encontrar una fila? Escribe su clave primaria en la casilla de filtro.
En el cuadro de diálogo que aparece después de hacer clic en Borrar, haz clic en Aceptar.
La consola de Google Cloud muestra los datos de tu tabla, que ya no contiene las filas borradas.
Para ver un ejemplo interactivo de cómo insertar y modificar datos en una tabla de Spanner, consulta la guía de inicio rápido con Console.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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)."]]