【发布时间】:2011-10-18 16:40:15
【问题描述】:
我正在关注 sqlcipher Api 文档中的示例:http://sqlcipher.net/sqlcipher-api#attach
ATTACH DATABASE 'encrypted.db' AS encrypted KEY 'secret'; -- create a new encrypted database
CREATE TABLE encrypted.t1(a,b); -- recreate the schema in the new database (you can inspect all objects using SELECT * FROM sqlite_master)
INSERT INTO encrypted.t1 SELECT * FROM t1; -- copy data from the existing tables to the new tables in the encrypted database
DETACH DATABASE encrypted;
第一行 CREATE TABLE encrypted.t1(a,b); 有 (a,b) 和第二行
INSERT INTO encrypted.t1 SELECT * FROM t1; 没有。
为什么第一行有an(a,b),它是干什么用的?
【问题讨论】:
-
有人建议 a,b 是表格列。
标签: sqlcipher