当前位置:数据库 > Oracle >>

oracle delete命令遇到的问题,求大神指点

通常命令为delete from table_name where condition; 我有一张表,有很多分区,我想这样 delete from table partition(part_name) where condition; 但是这样报错,提示没有select ,ora-00928;
补充:delete from   (dlmes partition(dlmes_m7)) t  where t.id='472395'   这是我的sql语句
答案:想清除分区还是删除数据?
如果是删除数据根本不关分区的事情,直接delete from table  where condition;
其他:啊,这个我不太懂……
你是写程序代玛吗? 表跟区没什么关系吧!再怎么分区也是一张表。。。除非你不同Schema。。。。。可以直接Delete delete from  t  where t.id='472395' 

上一个:Oracle数据库问题
下一个:请各位大侠告诉我哪里有oracle资料下载?

Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,