最新回答 / qq_慕斯卡9084436
數據表user(除了id其它字段可為null):
--?正確語句(運行成功,表有數據) insert?into?user(id,name,age)?value(1,'jack',18); --?錯誤語句(運行成功,表數據為?null) insert?into?user?value(id=1,name='jack',age=18); insert?into?user(id,name,age)?value(id=1,name='jack',age=18);看看你是不是用了這樣的語句
2017-08-20
最新回答 / qq_Rain雨因_inVX07
我也是這個問題,最后解決了,的確是dao層里面的那個”birthday“寫錯了,與表中的字段birthday并不匹配,仔細查看一下
2017-08-19
最贊回答 / FIJIiiii
出現了Exception in thread "main" java.lang.Error: Unresolved compilation problems: ?? ?url cannot be resolved to a variable?? ?user cannot be resolved to a variable?? ?password cannot be resolved to a variable
2017-08-14
最新回答 / 慕婉清0689395
你看的這個是通過名字進行查詢,你想通過ID進行查詢只需將sb.append("where user_name = ?")改成sb.append("where id=?")就行了。
2017-08-11