Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将日期时间插入sqlite数据库iphone语法错误接近时间我的查询给出
UPDATE Orders SET Toal_Price = 33.33,Date_of_Submit=2013-04-12 15:34:16 ,Status=1 WHERE OrderID=2
显示错误:
“15”附近:语法错误
在 SQL 中,此类时间戳是字符串。
您必须像这样格式化它们:
UPDATE Orders SET Toal_Price = 33.33, -- not Total_Price? Date_of_Submit='2013-04-12 15:34:16', Status=1 WHERE OrderID=2