0

hey guys i have an error of duplicate entry in database . . whereas data can be duplicate..error is like

Duplicate entry 'Years-1' for key 'term_type'

the insert code is

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')`
4

1 回答 1

1

term_type 设置为唯一,因此不可能输入具有相同值的多行,因此错误!

于 2013-04-11T13:56:42.343 回答