![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库/Oracle
wing123123
这个作者很懒,什么都没留下…
展开
-
怎么修改表的某字段名?
9.2.0版本可以使用 rename alter table <tabname> rename column <oldcol> to <newcol>原创 2009-12-02 09:33:33 · 271 阅读 · 0 评论 -
删除用户
drop user <username> cascade;原创 2009-12-02 11:41:21 · 92 阅读 · 0 评论 -
在数据库表中增加字段
alter table <tablename> add <column_name> <datatype >;原创 2009-12-03 16:12:55 · 264 阅读 · 0 评论 -
对NULL值的判断
数字/日期类型 -- <> null 字符串 -- is not null原创 2010-01-13 11:49:59 · 147 阅读 · 0 评论 -
Oracle分组取第一条数据
对多数据进行分组排序后取每组第一条记录 SELECT * FROM (SELECT ROW_NUMBER() OVER(PARTITION BY <PK_FINANCE_ACCOUNT_1> ORDER BY <amassdate> DESC) LEV, <hx_amass_liquid>.* ...原创 2010-07-22 11:54:54 · 475 阅读 · 0 评论 -
ORACLE 多表关联 UPDATE 语句
为了方便起见,建立了以下简单模型,和构造了部分测试数据:在某个业务受理子系统BSS中, --客户资料表create table customers(customer_id number(8) not null, -- 客户标示city_name varchar2(10) not null, -- 所在城市customer_type char(2) not nu...原创 2012-01-05 14:16:53 · 635 阅读 · 0 评论