A function that converts a date into characters:To_char (Date[,fmt[,params])Default format: DD-MON-RRParameter description:Date: Dates that will be loadedFMT: Format for swappingParams: The language of the date (can not be written)Example:Sql>
the introduction sequence of a sequence is a database object that can be used to generate a unique integer. Typically, a sequence is used to automatically generate a master code value. The value of a sequence is generated automatically by a special
1, to the database, the table of each row of data record additions and deletions to changeAdd: INSERT into Table name values ()Delete: Delete table name where condition (id=? )Change: Update table name set column name =? Where Condition (id=? )Check:
In OracleYou can use the InStr function to judge a string to determine whether it contains the specified character.Finds the specified character in a string, returning the position of the specified character that was found.Grammar:InStr
The character set of Oracle is determined by the parameter Nls_lang:The Nls_lang parameter consists of the following parts:Nls_lang=_.Nls_lang the meanings of each part are as follows:language specifies the language to use for Oracle messages, the
1: Three paradigmsA: A table must have a primary key, the column is not divided.B: If a table contains two fields as the primary key, then the other fields cannot be partially dependent on the two fields.2:PL Sql:procedural Language (Process
Spool can import the output of Oracle client Sqlplus into a text that can be exported in HTML, CSV and other forms, with the following syntax:Spool [Rep/append]The screen output remains in the specified file, if the file exists to replace the
The database design paradigm is the specification that database design needs to meet, the database that satisfies these specification is concise, the structure is clear, at the same time, does not take place insert (insert), delete and update
Today inadvertently on the Internet to see a message about the recovery of Oracle deleted data, found that it is very good, the following on my test report to you.1. Select * FROM T_VIRADSL2 t//query T_VIRADSL2 for all data, you can see three data2.
Oracle divides users into two categories: "System" and "SYS"
The "system" user can only log in to EM with normal status. (Can be regarded as a general member of the company)
"SYS" User has "SYSDBA" (can be regarded as the CEO of the
1.1 Simplest query statementExample 1-1Sql> select * from EMP;Example 1-1 resultsThe * number here represents all columns, and it is the same as listing all the column names after select. Query statement with a semicolon (;) End. An EMP (employee)
1, random number function: Dbms_random. RANDOM1 SELECT ABS(MOD (Dbms_random. RANDOM, -)) fromDUAL;--generate a random number within 1002 SELECTTRUNC ( -+ the*Dbms_random.value) fromDual--generates a random number between 100~10003
(1) Create a stored procedure in the JXGL database and run it and query all the girls ' information from the S table.1. Create a stored procedureCreate or Replace procedurePrfemale (Psno out s_rz0119. Sno%type,psname out s_rz0119. Sname%type,psage
I. Classification of RightsSystem permissions: The system specifies the user's permission to use the database. (System permissions are for users ).Entity permissions: A permission user's access to other users ' tables or views. ( for a table or view
There is a special time display type--timestamp timestamp in OracleUsually we convert the current time into a timestamp with the following syntax:Select cast (sysdate as timestamp ) from DualIn a JSP page, you need to get a timestamp field to
we often use SQL statements For example, select name, gender from student table to the Student this table query, this is a simple query, but when we want to table1,table2,table3, table4 ... Many tables for multi-table queries, we do not want to
Oracle Database elementary learning 2, oracle Database
Today we will introduce the remaining query methods in the Oracle database. Today's query methods will be more complex than yesterday's (PS: I am also a beginner, please forgive me ..).
I.
Oracle import IMP-00058 error and other
Oracle is used to access a project:
I. Download, install,
This is very careful and clear. You can do it later. Thanks to the author.
Http://blog.csdn.net/cxin917/article/details/50637891
Because I directly
Oracle mathematical functions
This article summarizes Oracle mathematical functions. We will share this with you for your reference. The details are as follows:
1. Absolute Value: abs ()
select abs(-2) value from dual;
2. Take the entire function
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service