The Oracle (tm) Users' Co-Operative FAQ
How do I get SQL*Plus to store an ampersnad (&) & in the database ?
| Author's name: Connor McDonald
Author's Email: connor_mcdonald@yahoo.com |
Date written: August 13, 2001 Oracle version(s): 7.3+ |
| How do I get SQL*Plus to store an ampersand (&) in the database ? |
The & is a special character to indicate a substitution variable. To override this, and thus allow & to be treated like any other character, all you need is:
SQL> set define off
SQL> insert into table values ('value&with&ersand');
1 row created.
Further reading: N/A
最后修改时间:2020-04-16 15:13:15
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




