2013-03-07 73 views
0

我无法在Oracle 9i表中插入电子邮件ID。 我正在使用腻子。无法在oracle表中插入mail @ id

INSERT INTO email(mail_list)values('[email protected]');

我m到处下面的错误: SQL> INSERT INTO电子邮件(mail_list)值( '孙大信@ abc.com'); SP2-0042: unknown command "abc.com')" - rest of line ignored.

腻子不接受@符号。

The problem is common with unix environment with the display terminal keyboard settings. The sqlplus session had trouble interpreting the "@" sign, because it was assigned in the terminal to the "kill" setting.

如何纠正问题:

我已在门户网站中的一个阅读以下?

感谢

孙大信

回答

1

尝试插入,而不必使用@字符。找出ascii的值:

SQL>select ascii('@') from dual; 
64 

然后使用CHR函数编写电子邮件地址。

INSERT INTO email(mail_list)values('sundar'||chr(64)||'abc.com'); 

(我没有Putty的知识,所以我用我的SQL知识)。

+0

感谢刘若英。这对我有效。 – SuRa 2013-03-07 14:31:35