Gestire i dati utilizzando la console Google Cloud
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina spiega come esplorare e gestire i dati di Spanner utilizzando Spanner Studio nella Google Cloud console.
Spanner Studio include un riquadro Explorer che si integra con un editor di query e una tabella dei risultati delle query SQL. Puoi eseguire istruzioni DDL,
DML e SQL da questa singola interfaccia. Ad esempio, anziché
configurare uno strumento di query del database di terze parti, puoi creare una tabella e
eseguire immediatamente query sui dati utilizzando l'editor di query.
Puoi utilizzare Explorer per visualizzare, cercare e interagire con gli oggetti del database. Puoi creare, modificare ed eliminare i seguenti oggetti database:
Puoi utilizzare il campo di ricerca nel riquadro Explorer per cercare oggetti database per nome nei tuoi progetti. La ricerca trova le risorse che corrispondevano direttamente alla tua query di ricerca o che contenevano corrispondenze. Se il termine di ricerca corrisponde a troppe risorse a livello di oggetto del database, il risultato potrebbe non mostrare tutte le corrispondenze. Restringi il termine di ricerca e cerca di nuovo.
Per accedere all'esploratore:
Nella Google Cloud console, apri la pagina Spanner.
Nel menu di navigazione, fai clic su Spanner Studio. Il riquadro Explorer mostra un elenco degli oggetti nel database.
Creare, modificare ed eseguire query sui dati
Con Query Editor puoi eseguire qualsiasi combinazione di istruzioni DDL, DML e SQL. Le istruzioni devono essere separate da un punto e virgola. Puoi comporre personalmente una query o compilare l'editor di query con un modello.
Le istruzioni vengono eseguite in base all'ordine in cui le inserisci nell'editor delle query. Le istruzioni DDL consecutive vengono raggruppate e inviate per l'esecuzione tutte contemporaneamente. Per ulteriori informazioni, consulta la sezione Ordine di esecuzione delle istruzioni in batch.
Per strutturare, modificare o eseguire query sui dati:
Nella Google Cloud console, apri la pagina Spanner.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-05 UTC."],[],[],null,["# Manage your data using the Google Cloud console\n\nThis page explains how to explore and manage your Spanner data\nusing Spanner Studio in the Google Cloud console.\n\nSpanner Studio includes an **Explorer** pane that\nintegrates with a query editor and a SQL query results table. You can run DDL,\nDML, and SQL statements from this one interface. For example, instead of\nconfiguring a third-party database query tool, you can create a table and\nimmediately query your data using the query editor.\n\nIf you're new to Spanner, learn how to\n[create and query a database by using the Google Cloud console](/spanner/docs/create-query-database-console).\n\nExplore your data\n-----------------\n\nYou can use the **Explorer** to view, search, and interact with your\ndatabase objects. You can create, alter, and delete the following database\nobjects:\n\n- Tables\n- Columns\n- [Indexes and keys](/spanner/docs/secondary-indexes)\n- [Change streams](/spanner/docs/change-streams)\n- ML models hosted on [Vertex AI](/spanner/docs/ml)\n- [Roles](/spanner/docs/fgac-about)\n- [Views](/spanner/docs/views)\n- [Placements (in preview)](/spanner/docs/geo-partitioning)\n- [Graphs](/spanner/docs/graph/overview)\n - [Nodes](/spanner/docs/graph/schema-overview#property-graph-data-model)\n - [Edges](/spanner/docs/graph/schema-overview#property-graph-data-model)\n- [Saved queries (in preview)](/spanner/docs/saved-queries)\n\n| **Note:** System-level views in the `INFORMATION_SCHEMA` and `SPANNER_SYS` schemas are read-only.\n\nYou can use the search field in the **Explorer** pane to search for database\nobjects by name in your projects. The search finds resources that\ndirectly match, or contain matches, to your search query. If your search term\nmatches too many resources in a database object level, the result might not show\nall matches. Narrow your search term, and search again.\n\nTo access the **Explorer**, follow these steps:\n\n1. In the Google Cloud console, open the **Spanner** page.\n\n [Go to Spanner](https://console.cloud.google.com/spanner)\n2. Select an instance from the list.\n\n3. Select a database.\n\n4. In the navigation menu, click **Spanner Studio** . The\n **Explorer** pane displays a list of the objects in your database.\n\nCreate, modify, and query your data\n-----------------------------------\n\nUsing the query editor, you can run any combination of DDL, DML, and SQL\nstatements. Statements must be separated by a semicolon. You can compose\na query yourself, or you can populate the query editor with a template.\n\nStatements are executed based on the order in which you enter them in the\nquery editor. Consecutive DDL statements are batched and sent for execution all\nat once. For more information, see\n[Order of execution of statements in batches](/spanner/docs/schema-updates#order_of_execution_of_statements_in_batches).\n\nTo structure, modify, or query your data, follow these steps:\n\n1. In the Google Cloud console, open the **Spanner** page.\n\n [Go to Spanner](https://console.cloud.google.com/spanner)\n2. Select an instance from the list.\n\n3. Select a database.\n\n4. In the navigation menu, click **Spanner Studio**.\n\n5. Compose a query using one of the following methods:\n\n - To compose your own query, follow these steps:\n\n 1. Open a new tab by clicking add **New SQL editor tab** or add **New tab**.\n 2. When the query editor appears, write your query.\n - To compose a query starting with a template, follow these steps:\n\n 1. In the **Explorer** pane, next to a database object, click more_vert **View actions**. One or more available actions appear.\n 2. Click an action. The query editor populates with a template.\n 3. Replace any placeholders in the template.\n6. Click **Run** . The results of your query appear in the **Results** table."]]