Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在不使用手动输入的情况下创建由 MySQL 命令包含的表,请参见图片:
在此处输入图像描述
根据接受的答案,您似乎需要图形界面运行的 SQL 命令。将来,您可以使用 phpMyAdmin 直接向您显示这些查询。
当您在该页面上创建新表(或编辑现有表)时,“保存”旁边有一个“预览 SQL”按钮。单击它会显示将运行但实际上不会运行它们的 SQL 命令。
您可以使用此 SQL 创建表名称为:已发布
CREATE TABLE published ( `is_published` BOOLEAN NOT NULL DEFAULT true ) ENGINE=InnoDB;