Jstions 2018-06-12 02:16 采纳率: 75%
浏览 861
已采纳

sql语句这个错误怎么改

已执行的 SQL 语句:Create table lixijisuan.Interest(

clientname varchar(20) NOT NULL,
productname varchar(40) NOT NULL,
guaranteemethod char(8) NOT NULL,
loanpayment double(13) NOT NULL,
loanperiodmonths double(8) NOT NULL,
accountopeningdate date NOT NULL,
dateofexpiry date NOT NULL,
lendingrate double(17) NOT NULL,
lendingrate(month) double(17) NOT NULL,
loanbalance double(13) NOT NULL,
writeofftheprincipal double(13) NOT NULL,
arrears double(13) NOT NULL,
irrevocableinterest double(17) NOT NULL,
accountstatus varchar(8) NOT NULL,
dateofclassification date NOT NULL,
classification varchar(8) NOT NULL,
handlingbank int(11) NOT NULL,
attn int(11) NOT NULL,
primary key (clientname)
) charset=utf8 collate=utf8_bin错误号:1064错误信息:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') NOT NULL,
loanperiodmonths double(8) NOT NULL,
accountopeningdate da' at line 5

  • 写回答

4条回答 默认 最新

  • xiao潇 2018-06-12 02:30
    关注

    double(a,b) ,其中的a 表示字符总位数,b 表示小数点后的位数

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?