我想问一下是否有任何配置允许 HeidiSQL 生成如下所示的 INSERT 查询:
INSERT INTO state SET ST_ID = NULL, ST_NAME = "lol"
代替:
INSERT INTO state (ST_ID, ST_NAME) VALUES (NULL, 'lol')
解决方案:
1. Select a table in heidi
2. In the query tab, select desired column from the right panel.
3. Right click on the selected column and select 'Generate Update..'
4. In the generated query, change the 'UPDATE' command to 'INSERT INTO'.
5. Delete the 'WHERE' command
好吧,即使这是 Heidi 的一个功能:
一个。右键单击一列,然后单击“生成插入/更新/删除”
湾。或选择更多列,然后右键单击。生成的查询将使用选定的列