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.
我使用 SQLite。我怎样才能使用这样的东西:
INSERT INTO ( SELECT `table_name` FROM `tables` WHERE `id`=1)(`data_column_name`) VALUES ('some data')
感谢帮助
根据文档,您不能。该INSERT语句采用表名 - 带有可选的模式名称 - 而不是表达式。
INSERT
您必须评估SELECT然后构建INSERT语句。
SELECT