写存储过程怎么使一个varchar2类型的字符串中带单引号 v_sqltemp2 := 'SELECT BLDNO, FLOORS from building_att where mapping_no= '111''';PS:在字符串中,“''”表示一个“ '”,就像C语言的“\”在字符串中要表示为“\\”,VB中的“"”在字符串中要表示为“""”!!:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 应为:v_sqltemp2 := 'SELECT BLDNO,FLOORS from building_att where mapping_no = '||'111'||chr(39);或:v_sqltemp2 varchar2(1000);v_sqltemp2='111'||chr(39);v_sqltemp2 := 'SELECT BLDNO, FLOORS from building_att where mapping_no = '||v_sqltemp2; v_sqltemp2 := 'SELECT BLDNO,FLOORS from building_att where mapping_no = ''111'''; oracle 求教关于session查杀的问题。 无法加载 DLL“OraOps9.dll”: 找不到指定的模块 怎能样才能登陆SQL Plus??? 求助!求助!求助! 各位大侠快来救命 在ENTERPRISE MANAGER后看不到新建的库ORC1,为什么? Oracle中如何为某个表设置主键?(表已建好) oracle ORACLE被黑,求救!!!!(在线给分) oracle为什么select视图后不能删除其作用的表? 急!不安装客户端连接ORACLE
v_sqltemp2 := 'SELECT BLDNO,FLOORS from building_att where mapping_no = '||'111'||chr(39);
或:
v_sqltemp2 varchar2(1000);
v_sqltemp2='111'||chr(39);
v_sqltemp2 := 'SELECT BLDNO, FLOORS from building_att where mapping_no = '||v_sqltemp2;