diff --git a/CLOUD-SQL-MYSQL.md b/CLOUD-SQL-MYSQL.md index 991b0ff..980deaf 100644 --- a/CLOUD-SQL-MYSQL.md +++ b/CLOUD-SQL-MYSQL.md @@ -81,4 +81,9 @@ Users may have set project environment variables: * `CLOUD_SQL_MYSQL_DATABASE`: The name of the database. Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value. -Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT`, `${CLOUD_SQL_MYSQL_PROJECT}`, or `$CLOUD_SQL_MYSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MYSQL_PROJECT`. \ No newline at end of file +Make sure to not use the environment variable name like `CLOUD_SQL_MYSQL_PROJECT`, `${CLOUD_SQL_MYSQL_PROJECT}`, or `$CLOUD_SQL_MYSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MYSQL_PROJECT`. + +## Use Full Table Name Format "DATABASE_NAME.TABLE_NAME" + +**ALWAYS** use the full table name format, `DATABASE_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_mysql__execute_sql` tool. +* Use command `echo $CLOUD_SQL_MYSQL_DATABASE` to get the current database value.