我有数据库电话簿和表联系人,为表联系人创建语句如下所示: CREATE TABLE 'contacts'('name' text collate nocase,'surname' text collate nocase,'street_name' text collate nocase,'street_number' text collate nocase , 'city' text collate nocase, 'post' text collate nocase, 'post_office_code'text collate nocase, 'text_to_publish' text collate nocase, 'area_code' text collate nocase, 'phone' text collate nocase, 'fax' text collate nocase, 'email' 文本整理 nocase)
我设法从 java 代码中将它加载到内存中:“ATTACH 'phonebook' AS tempInMemoryDb”和“CREATE TABLE tempInMemoryTable AS SELECT * FROM 'contacts';”
但是使用 Create table .. as select .. 结果集被复制到新表而不声明列属性(在我的情况下是 collate nocase)。
我需要的是不区分大小写的搜索,但是在内存表中,所以你能告诉我我该怎么做吗?