oracle语句大全

1,创建数据库
create database database-name
2,删除数据库
dorp database dbname
3,备份sql server
——创建备份数据的device
use master
exec sp_addumpdevice'disk','testBack','c:mssql7backup\myNwind_1.dat'
——开始备份
backup database pubs to testBack
4,创建新表
create table tabname (col1 type1 [not null] [primary key],col2 type2 [not null],...)
5,几个简单的基本的sql语句
选择:select * from table1 where 范围
插入: insert into table1(field1,field2) values (value1,value2)
删除:delete from table1 where 范围
更新:update table1 set field1=value1 where 范围
查找:select * from table1 where field1 like '%value1'
排序:select * from table1 order by field1,field2 [desc]
总数:select count as totalcount from table1
求和:select sum(field1) as sumvalue from table1
平均:select avg(fiel)

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容