第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

數(shù)據(jù)添加不上

我在添加時總是出現(xiàn)

thread "main" com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'mobile' at row 1

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2983)

at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)

at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)

at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)

at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)

at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:882)

at com.imooc.dao.GoddessDao.addGoddess(GoddessDao.java:34)

at com.imooc.action.GoddessAction.main(GoddessAction.java:22)

的錯誤不知道為什么,sq語句也沒有錯,我在數(shù)據(jù)庫里面能添加上去,代碼和老師講的一樣。

網(wǎng)上寫的是字段過長我不明白怎么處理?


正在回答

2 回答

把你的代碼貼出來

0 回復(fù) 有任何疑惑可以回復(fù)我~

Connection conn=null;

//加載驅(qū)動

try {

Class.forName("com.mysql.jdbc.Driver");

//建立連接

conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/office?dbuseUnicode=true&characterEncoding=UTF-8", "root", "root");


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

數(shù)據(jù)添加不上

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號