我正在尝试运行简单的INSERT
查询,但收到错误说明:
General error: 1100 Table 'entities' was not locked with LOCK TABLES
我在查询之前没有使用隐式LOCK TABLES
。
在查询之前做一个SHOW FULL PROCESSLIST
:
Id User Host db Command Time State Info
646 my_user my-win-8:4018 db_name Query 0 SHOW FULL PROCESSLIST
我正在运行的查询是:
INSERT INTO entities (type, user_id, created, creator, updated, updater)
VALUE ('some-type', NULL, '2013-07-02 01:30:18', '3', '2014-08-28 23:45:44', '2');