Duplicate entry 'Years-1' for key 'term_type'
插入代码是
INSERT INTO tbl_investment (member_id, investment_type, scheme_name, term, term_type, receipt_count, `investment_amount`, investment_date, maturity_amount, maturity_date)
VALUES ('162', 'RD', 'hgyuuy', '2', 'Years', '1', '15000', '2013-04-11', '1000', '2013-04-11')`
答案 0 :(得分:1)
术语类型设置为唯一,因此输入具有相同值的多行是不可能的,因此错误!