我有一个像这样的sqlite数据库:
_id | word | spell | detail | created | is_deleted | phonetic
______________________________________________________________
1 | hello| hello | ok |173569854| 0 | /hello/
______________________________________________________________
2 | nice | nice | test |156489874| 0 | /nice/
______________________________________________________________
.
.
.
现在我想创建一个新的数据库,如下所示:
_id | word | phonetic
_____________________
如何将数据从原始数据库复制到新数据库?
答案 0 :(得分:1)
你的意思是一张新桌子?
您可以执行以下操作:
INSERT INTO NewTable
SELECT _id, word, phonetic
FROM OldTable