sql,SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'your_database_name';,
``sql,SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'your_database_name';,
``sql,CREATE DATABASE mydatabase;,
``sql,ALTER TABLE table_name,ADD CONSTRAINT fk_name FOREIGN KEY (column_name) REFERENCES other_table(other_column);,
`,确保在执行此操作之前,
table_name和
other_table已经存在,且
column_name和
other_column`的数据类型相匹配。Powered By Z-BlogPHP 1.7.3