You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ and `{}` for a mutually exclusive keyword.
192
192
| Switch database |`USE <database> [ROLE <role>];`| The role you set is used for accessing with [fine-grained access control](https://cloud.google.com/spanner/docs/fgac-about). |
193
193
| Create database |`CREATE DATABSE <database>;`||
194
194
| Drop database |`DROP DATABASE <database>;`||
195
-
| List tables |`SHOW TABLES;`||
195
+
| List tables |`SHOW TABLES [<schema>];`| If schema is not provided, default schema is used|
196
196
| Show table schema |`SHOW CREATE TABLE <table>;`||
stmt:=spanner.NewStatement(fmt.Sprintf("SELECT t.TABLE_NAME AS `%s` FROM INFORMATION_SCHEMA.TABLES AS t WHERE t.TABLE_CATALOG = '' and t.TABLE_SCHEMA = ''", alias))
482
+
stmt:=spanner.NewStatement(fmt.Sprintf("SELECT t.TABLE_NAME AS `%s` FROM INFORMATION_SCHEMA.TABLES AS t WHERE t.TABLE_CATALOG = '' and t.TABLE_SCHEMA = @schema", alias))
0 commit comments