Sqlite from 错误
来源:互联网 发布:知乎 埃斯顿 伺服电机 编辑:程序博客网 时间:2024/05/29 04:13
想要更新sqlite一行数据的多个列,试着使用
UPDATE [TABLE] a SET a.colums1 = b.colums1,a.colums2=b.colums2...
FROM [TABLE] a,[TABLE] b
WHERE a.id=x and b.id=x
结果一直报错,纠结了很久才发现sqlite不支持这样的FROM 。
看来只能先用笨方法解决了,
就是
UPDATE [TABLE] SET
colums1 = (SELECT colums1 FROM [TABLE] WHERE id = x),
olums2 = (SELECT colums2 FROM [TABLE] WHERE id = x),
....
WHERE id=x
有点繁琐,怎么简化呢。。。
0 0
- Sqlite from 错误
- nhibernate应用sqlite错误Could not create the driver from 。。。修复
- 编译提示"_sqlite3_column_int", referenced from: 错误 ---swift中添加sqlite报错
- 编译提示"_sqlite3_column_int", referenced from: 错误 ---IOS中添加sqlite报错
- SQlite -- Select * from left Join
- Android中操作Sqlite遇到的错误:java.lang.IllegalStateException: Couldn't read row 1, col 0 from CursorWindow
- SQLite-EXISTS 错误
- QT SQlite 错误
- Android SQLite getWritableDatabase 错误
- SQLite 错误码
- sqlite错误码
- SQLite 错误码
- sqlite运行错误示例
- SQLite 错误码
- SQLite错误码
- SQLite错误码总结
- SQLite错误码
- SQLite 的错误码
- public、private、protected解析
- Python 3 语法小记(一)入门 (print 函数用法总结)
- MyBatis对象关联关系---- association与collection
- 认识Enumeration,Iterator的使用场景和性能
- 点击脚本,远程执行文件!
- Sqlite from 错误
- 线程安全
- Centos7,Hadoop-2.5.1下HBase-1.1.2安装部署
- SQL语句构建器类
- 02.C#类、重写虚函数、get和set方法
- 升级github的版本库号
- jquery操作select(设置选中值,取选中值)
- 验证文件数字签名
- IDA Pro的使用(1)反汇编