Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

sql - Using insert statement in ydn.db

Is this possible at all?

db.executeSql(INSERT INTO customer(email) VALUES([email protected])).then(function(results) {console.log(results);}, function(e) {throw e;});

I am trying to insert a record using above syntax and I get this error:

serial.js:539 Uncaught
J {message: "number of store names must more than 0", name: "ydn.error.ArgumentException", stack: "ydn.error.ArgumentException: number of store names…eapp/www/thirdparty/jquery-1.11.2.min.js:2:27295)"}
message: "number of store names must more than 0"
name: "ydn.error.ArgumentException"
stack: "ydn.error.ArgumentException: number of store names must more than 0? at new J (https://cdn.jsdelivr.net/npm/[email protected]/jsc/ydn.db-dev.min.js:49:492)? at ff.l.pa (https://cdn.jsdelivr.net/npm/[email protected]/jsc/ydn.db-dev.min.js:90:71)? at ff.l.request (https://cdn.jsdelivr.net/npm/[email protected]/jsc/ydn.db-dev.min.js:92:349)? at Sh.executeSql (https://cdn.jsdelivr.net/npm/[email protected]/jsc/ydn.db-dev.min.js:289:1632)? at Mi.Th.executeSql (https://cdn.jsdelivr.net/npm/[email protected]/jsc/ydn.db-dev.min.js:289:1878)? at Object.onDeviceReady (http://xxx.p.com/dev/xx/mobileapp/www/js/formList.js:635:4)? at Object.bindEvents (xxxx)? at Object.initialize (http://xxx.p.com/dev/xx/mobileapp/www/js/formList.js:20:11)? at HTMLDocument. (http://xxx.p.com/dev/xx/mobileapp/www/js/formList.js:2120:17)? at j (http://xxx.p.com/dev/xx/mobileapp/www/thirdparty/jquery-1.11.2.min.js:2:27295) proto: ra

question from:https://stackoverflow.com/questions/66053092/using-insert-statement-in-ydn-db

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...