일반적인 애플리케이션은 데이터베이스에 연결하기 위해 하위 수준 드라이버나 객체 관계형 매퍼(ORM)와 같은 클라이언트를 사용합니다. Spanner는 개발자 환경 전반에서 JDBC와 같은 공통 라이브러리를 사용할 수 있는 여러 언어의 클라이언트를 지원합니다. 자세한 내용은 드라이버 개요를 참조하세요.
애플리케이션이 Spanner에 연결되는 방식을 관리하는 것 외에도 어떤 쿼리가 전송되고 어떤 문법을 사용하는지도 관리해야 합니다.
Spanner는 모두 ANSI SQL 표준을 기반으로 하는 두 가지 SQL 언어를 지원합니다.
운영하려는 생태계에 따라 Spanner에 GoogleSQL 또는 PostgreSQL 인터페이스를 사용할 수 있습니다. 자세한 내용은 Spanner 데이터베이스에 적합한 언어 선택을 참조하세요.
Spanner 데이터베이스와 소스 데이터베이스 간의 아키텍처 차이로 인해 Spanner에서 사용되는 문법이 소스 데이터베이스의 문법과 일치하지 않을 수 있습니다.
애플리케이션을 Spanner로 마이그레이션하려면 다음 단계를 수동으로 완료하세요.
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,["# Migrate your application code\n\nA typical application uses a client, such as a low-level driver or an object-relational mapper (ORM) to\nconnect to the database. Spanner supports clients in multiple languages\nthat let you use common libraries, such as JDBC, across developer\nenvironments. For more information, see\n[Overview of drivers](/spanner/docs/drivers-overview).\n\nIn addition to managing how your application connects to Spanner,\nyou also have to manage which queries are sent and which syntax the queries are using.\nSpanner supports two SQL dialects, both based on ANSI SQL standard.\nYou can choose to use GoogleSQL or PostgreSQL interface for Spanner based\non the ecosystem you want to operate in. For more information, see\n[Choosing the right dialect for your Spanner database](/spanner/docs/choose-googlesql-or-postgres).\nBecause of the\narchitectural differences between the Spanner database and your\nsource database, the syntax used\nin Spanner might not align with the syntax of your source database.\n\nComplete the following steps manually\nto migrate your application to Spanner:\n\n- Spanner doesn't support running user code in the database,\n so you need to move any procedures and triggers stored at the database level\n into the application.\n\n- Use Spanner client libraries and ORMs. For more information, see\n [Overview of APIs, client libraries, and ORM drivers](/spanner/docs/api-libraries-overview).\n\n- Take note of [Spanner partitioned DML](/spanner/docs/dml-partitioned),\n [read-only transactions](/spanner/docs/transactions#read-only_transactions),\n [commit timestamps](/spanner/docs/commit-timestamp), and read timestamps and\n how they can optimize application performance.\n\n- You also might need to make changes to transaction handling. Consider the following:\n\n - The mutations per commit limit is 80,000. Each secondary index on a table is an additional mutation per row. To modify data using mutations, see [Insert, update, and delete data using mutations](/spanner/docs/modify-mutation-api). To modify a large amount of data, use [partitioned DML](/spanner/docs/dml-partitioned)."]]