我是SQL的新手,是否有列表或向量变量类型?我可以有一列类型为字符串列表的列吗?

也许像这样:

CREATE TABLE myTbl(domain varchar PRIMARY KEY, linkList list<varchar>);

我可以附加一个像这样的字符串吗(使用'+ ='运算符):
UPDATE myTbl SET linkList += "www.test.com," WHERE domain="blah";
// Table is like so
CREATE TABLE myTbl(domain varchar PRIMARY KEY, linkList varchar);
// Column linkList is a string of links separated by comma's

最佳答案

No, there are no array/list/vector data types in SQLiteThe string concatenation operator in SQLite is ||

关于sql - SQLite中的向量/列表,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9755741/

10-10 14:08