标签: mysql sql database
我明白了:
SET @databasename = (SELECT DATABASE()); USE @databasename; ...SQL Querys...
但这不适合我:(
答案 0 :(得分:1)
试试这个:
SELECT DATABASE() INTO databasename;