请教:这个delete语句在Oracle中怎么写? DELETE TABLE1.*FROM TABLE1,TABLE2 where TABLE1.KHID = TABLE2.KHID and TABLE2.FWDWID=8 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 DELETE TABLE1 where KHID in ( select KHID from table2 where FWDWID=8) LGQDUCKY(飘)的语句通过了,谢谢!不过,不知还有没有别的写法,感觉这种写法(用 in )在数据量大的时候,效率可能不高。 DELETE TABLE1 where exists ( select 1 from table2 where and table1.khid=table2.khid and FWDWID=8); DELETE TABLE1 where KHID =Any(select KHID from table2 where FWDWID=8) 谢谢诸位。用 in , exists , any 都可以通过,不知哪个效率最高。 同等条件下,推荐exists,有时要用IN,具体可以看执行计划, DELETE TABLE1 where KHID exists ( select KHID from table2 where FWDWID=8) 上述两个用到 exists 的 SQL 语句,哪个更好呢? function TMainForm.GetHostInfo(header: String): String;var ServerName: String; ServerIni: TIniFile;begin ServerIni := TIniFile.Create(ExtractFilePath(ParamStr(0)) + 'FtpHost.ini'); ServerName := ServerIni.ReadString('Server', header, header); ServerIni.Free; result := ServerName;end; ORACLE表权限问题 大家好,orace的分页sql如何写,在mysql里面是limit 0,5,orace是怎么写的? 求助各位高手一个关于vc调用oracle存储过程的问题! 同样的table,为什么我的那么慢 两个select查询的结果怎么相减?急用!!! oracle 8 不支持join吗? 怎样启用函数索引 这个sql 怎么写 oracle里面有没有统计某个字符串中某个字符个数的函数 Oralce运行变慢,重启恢复 数据访问问题 请问在VC中使用oci调用一个有输入输出参数的还有游标的存储过程,请问游标的输出数据怎么绑定的
不过,不知还有没有别的写法,感觉这种写法(用 in )在数据量大的时候,效率可能不高。
var
ServerName: String;
ServerIni: TIniFile;
begin
ServerIni := TIniFile.Create(ExtractFilePath(ParamStr(0)) + 'FtpHost.ini');
ServerName := ServerIni.ReadString('Server', header, header);
ServerIni.Free;
result := ServerName;
end;