我是在aix 5.1下编译程序的,出错信息:第一句:"Execute(conn,"insert into pet(name,owner,species,sex,birth,death)" 得到错误:String literal must be ended before the end of line第二句:"values('hua','zhang','dog','f','1998-1-1','2001-1-1')");" 得到错误: 1.Character constant 'hua' has more than one character.No more than rightmost 4 character are used.('zhang','dog','1998-1-1','2001-1-1'也有类似错误) 2.Syntax error:possible miss ')'? 3.String literal must be ended before the end of line
INSERT 语句 的确没有什么问题呀,
得到错误:String literal must be ended before the end of line第二句:"values('hua','zhang','dog','f','1998-1-1','2001-1-1')");"
得到错误:
1.Character constant 'hua' has more than one character.No more than rightmost 4 character are used.('zhang','dog','1998-1-1','2001-1-1'也有类似错误)
2.Syntax error:possible miss ')'?
3.String literal must be ended before the end of line