[Tip]如何在SQL*PLUS中插入含有'&'的字符串?
来源:互联网 发布:adarank ndcg优化 编辑:程序博客网 时间:2024/05/17 02:00
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
方法一
在SQL*PLUS中用这个命令:
set define off
方法二(推荐)
参见如下的例子:
SQL> truncate table demo;
Table truncated.
SQL> select * from demo;
no rows selected
SQL> desc demo;
Name Null? Type
----------------------------------------- -------- -----------------
X CHAR(20)
SQL> insert into demo values ('scott&'||'tiger');
1 row created.
SQL> select * from demo;
X
--------------------
scott&tiger
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- [Tip]如何在SQL*PLUS中插入含有'&'的字符串?
- [Tip]如何在SQL*PLUS中插入含有'&'的字符串?
- [Tip]如何在SQL*PLUS中插入含有&的字符串?
- 在SQL*PLUS中插入含有&的字符串
- 在oracle数据库中插入含有&符号的字符串
- 在oracle数据库中插入含有&符号的字符串
- 如何在SQL*PLUS中使用Autotrace?
- 向数据库中插入含有单引号的字符串
- 如何把SQL SERVER中一个含有数字的字符串找出来?
- sql语句插入的数据中含有单引号怎么办?
- sql语句插入的数据中含有单引号怎么办?
- sql语句插入的数据中含有单引号怎么办?
- sql语句插入的数据中含有单引号
- 如何在plus/sql中执行*.sql文件?
- sql server 字符串中含有数字的分割
- 如何在sql中插入换行
- 如何在SQL*PLUS中使用Autotrace?(看执行计划)
- oracle 如何在SQL PLUS中执行FUNCTION?
- 走迷宫C#版(二)
- 德国500多政府部门放弃微软 转用Linux
- Microsoft模式和实践:模式篇(Microsoft Patterns & Practices:
- Oracle 存储过程返回结果集
- Questioning C# (二)
- [Tip]如何在SQL*PLUS中插入含有'&'的字符串?
- Odbc连SQL Server数据库的几种方法
- Visual Basic 6.0 控件和 .NET 控件的区别(续)
- UNIX和WINDOWS2000上的ORACLE的差异 PartII
- webservice系列教学(9)-如何调用webservice(vb6.0,vbscript)
- InnoDB 中文参考手册 --- 犬犬(心帆)翻译
- Add data to the Access database using ADO
- InnoDB 中文参考手册 --- 4 建立 InnoDB 表
- 15秒:为ASP.NET应用缓存Oracle数据