delete from * where name = "" 有什么错

game4cn 2001-08-24 10:57:49
delete from * where name = "" 有什么错
...全文
700 22 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
22 条回复
切换为时间正序
请发表友善的回复…
发表回复
yaoxiaofeng 2001-08-27
  • 打赏
  • 举报
回复
要完成什么样的操作?
park_lang 2001-08-27
  • 打赏
  • 举报
回复
不好意思,上面*不需要 而且FROM也可以省略
park_lang 2001-08-27
  • 打赏
  • 举报
回复
sybase中
DELETE * FROM TABLE WHERE COLLUM IS NULL
tjm1 2001-08-26
  • 打赏
  • 举报
回复
delete * from tablename
chgo 2001-08-26
  • 打赏
  • 举报
回复
直接清空数据库不就行了吗
phwind 2001-08-26
  • 打赏
  • 举报
回复
好象*不能用在这里.你想,如果用*,那么没有Name字段的表就会出错!!!
feidao1 2001-08-25
  • 打赏
  • 举报
回复
这样:delete 表名 where name = ''
kks 2001-08-25
  • 打赏
  • 举报
回复
错了!错了!应该这样:
declare
cursor gettablename is select table_name from tabs;
temp varchar2(30);
begin
open gettablename;
loop;
fetch gettablename into temp;
exit when gettablename%notfound;
begin
execute immediate 'delete from '||temp||' where name is null;
exception
when others then
null;
end;
end loop;
end;

veryeasy 2001-08-25
  • 打赏
  • 举报
回复
delete tablename1 where name = '' or name is null
kks 2001-08-25
  • 打赏
  • 举报
回复
试试:
delete from (select table_name from tabs) where name is null
ge_san_tu 2001-08-25
  • 打赏
  • 举报
回复
重新学习一遍语法吧!!!
michaelzhang 2001-08-25
  • 打赏
  • 举报
回复
delete from * where name = "" ----没有这样用的吧,
delete from tablename where ...
helpeachother 2001-08-25
  • 打赏
  • 举报
回复
delete 表名 where name = ''
wanghai 2001-08-25
  • 打赏
  • 举报
回复
delete 表名 where 条件
marvellin 2001-08-25
  • 打赏
  • 举报
回复
oracle中:
delete from table_name where nvl(name,'')='';
smartdonkey 2001-08-25
  • 打赏
  • 举报
回复
同意飞刀
leeyoong 2001-08-24
  • 打赏
  • 举报
回复
delete tablename1 where name = "" 有什么错
这句话没错!
hobo_man 2001-08-24
  • 打赏
  • 举报
回复
不明
llzczf 2001-08-24
  • 打赏
  • 举报
回复
delete tablename1 where name = "" 有什么错
anglely168 2001-08-24
  • 打赏
  • 举报
回复
没有表名字啊!
加载更多回复(2)

34,838

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧