sql 语句优化 问题? 求助!
SELECT 字段1
from 表 WHERE (...) AND 字段1=function()
字段1有可能的值 为 0 或者 -1
function 返回 0 或者 -1
这样的速度太慢了 请高手帮忙
定!
我写成这样 速度果然快了
select 字段1 from 表 where(...) and 字段1 in (select function() from dual)
谢谢!
相关问答:
两种错误:
1.如果我这样申明:ResultSet rs;错误提示如下:
An error occurred at line: 51 in the jsp file: /index.jsp
The local variable rs may not have been initialized
48: ......
问题描述:
我用的是sql 2000
企业管理器->展开服务器->管理->SQL Agent->属性
在处来的SQL Server代理属性对话框中 邮件会话选项框下面的 邮件配置文件 不能用 呈现灰色
我同学的却能用。 ......
data a b c d e tag
2009-11-01 11 ......
各位大侠,有个问题请教,我现在有两张表A,B字段都有num,如
A B
num   ......