- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle 常用的sql语法和数据对象(Oracle commonly used SQL syntax and data object)
oracle 常用的sql语法和数据对象(Oracle commonly used SQL syntax and data object)
A data control language (DML) part
1.INSERT (data table to insert records statement)
INSERT INTO 1 (table name field name, field name 2,...... VALUES (1) value, a value of 2,...... );
INSERT INTO 1 (table name field name, field name 2,...... (1) SELECT field name, field name 2,...... In addition the table name FROM);
The field of type string value must be enclosed in single quotes, such as GOOD DAY
If the field value contains a single quotation mark to string conversion, we replace it with two single quotes.
The field of type string value exceeds the defined length will go wrong, the best length check before insertion.
Date field values can be used for the current database system SYSDATE time, accurate to seconds
Or use the string into the date type function TO_DATE (2001-08-01, YYYY-MM-DD)
(TO_DATE) there are many kinds of date format, see ORACLE DOC.
Year month day hours: Minutes: seconds format YYYY-MM-DD HH24:MI:SS
Maximum string length can be INSERT when the operation is less than or equal to 4000 single byte string, if you want to insert longer, please consider using the CLOB type field,
By use of the methods of ORACLE with DBMS_LOB package.
INSERT if you want to use serial numbers from 1 to start the automatic growth, should first establish a serial number
The name CREATE SEQUENCE serial number (the best is the table name + serial number tag INCREMENT BY 1 START WITH 1)
MAXVALUE 99999 CYCLE NOCACHE;
One of the biggest value according to the length of the field to be, if the automatic growth defined by sequence number NUMBER (6), the maximum value is 999999
The INSERT statement to insert the field value of the serial number of the name:.NEXTVAL
2.DELETE (delete data table record statement)
The DELETE FROM table name WHERE;
Note: delete records did not release ORACLE in the occupied block table space. It is only the deleted data block is marked as unused.
If you really want to delete all the
您可能关注的文档
- flunet英文(熟练的英文).doc
- fm2012 新训练系统的详细攻略与使用心得(Detailed strategy and experience the new fm2012 training system).doc
- flash10使用rtmfp 开发点对点p2p应用(Flash10 developed using rtmfp peer-to-peer applications P2P).doc
- fm24c512驱动(Fm24c512 driver).doc
- excel的中宏从入门到精通(Excel - from entry to the master).doc
- e是无理数的证明方法(E is a method of proof of an irrational number).doc
- for的语法上下(The syntax of for on).doc
- for高中物理方法(For method of high school physics).doc
- foxmial使用文档(Foxmial use of documents).doc
- freemark语法(提示语法).doc
- oracle 基本语法(Oracle基本语法).doc
- oracle 日志分析工具使用说明logmnr(Oracle log analysis tools use LOGMNR).doc
- oracle中to_date格式 to_date格式(The to_date format of to_date Oracle).doc
- oracle中使用logminer分析日志(Oracle used in logminer log analysis).doc
- oracle克隆安装(oracle克隆安装).doc
- oracle官方文档如何学习(Oracle official documents how to learn).doc
- oracle控制台服务找不到问题解决(The Oracle console service can not find the problem).doc
- oracle数据库plsql的分析函数(The analysis function of Oracle PLSQL database).doc
- oracle10演示测试程序源码(Oracle10 demo test program source code).doc
- oracle查询语法大全(Oracle query syntax Daquan).doc
文档评论(0)