Insert Null valueExecute the following query:INSERT into EMP (empno,ename,job,sal) VALUES (1005, ' Yang Hua ', ' clerk ', NULL);copy data: This form can insert more than one row of data at a time.Step 1: Create a new Table Manager: CREATE
Basic creation is not said, here are some unusual methods, said it is very usefulCreate a table from a subqueryCreate a new book table from a subquery. Step 1: Completely copy the Book table to "Book 1", enter and execute the following command:
(For reference: The method I personally operated, solved the problem!) )Resolve Connection ORACLE Error Example: Ora-01033:oracle initializing or shutting downClient found a problem connecting to the database, error: Ora-01033:oracle initializing or
pagerattributes.fieldcollection column name pagerattributes.tablename table name pagerattributes.sortfieldname sort column Name Pagerattributes.sortdirection sort Pagerattributes.pageindex Current page pagerattributes.itemsperpage per page Size
1. View All Users:SELECT * from Dba_users;SELECT * from All_users;SELECT * from User_users;2. View user or role system permissions (System permissions that are directly assigned to a user or role):SELECT * from Dba_sys_privs;SELECT * from
One,the characteristics of Oracle database, can have the following four points:1, the Complete data management function:The large amount of data, the persistence of data retention, the sharing of data, the reliability of data2, complete relations of
?1. Error handlingOra-00911:invalid character . This is because the ";" is added at the end of the statement. For the sake of, remove the ";" SQL can execute the ~(This differs from SQL Server)?Oracle: Resolution of text-to-format string
Oracle Installation NotesOnly modified time, input: Date-s 14:15:00Also modify the date time, note to add double quotation marks, the date and time there is a space, enter: Date-s "2015-08-03 14:15:00"After modifying, remember to enter: Clock-wRoot
SQL statement for querying and deleting duplicate records1, look for redundant records in the table, duplicate records are based on a single field (ID) to determineselect * FROM table where Id in (select ID from table group Byid have count (Id) > 1)
Operations on tables in oracle
The basic creation will not be mentioned. Here we will talk about some uncommon methods, which means they are easy to use.
Create a table using a subqueryCreate a new book table using a subquery.
Step 1: completely
Table locking in oracleLock ConceptThe lock is used in data sharing to ensure data consistency. When multiple sessions modify a table at the same time, the data needs to be locked accordingly.
Locks include read-only locks, exclusive locks, and
The current system insertion time for Oracle, Db2, SqlServer, and MySQL databases.
I often encounter the following problems due to lack of knowledge about the time when the database is inserted into the system when I am working on a yibui Network
Oracle 11g cannot connect to reporting ORA-12537 + ora-609 resolution, ora-12537ora-609
Operating System: windows2008
Database: oracle11g
Problem: an application system that has been running normally for a year suddenly cannot connect to the
Simulation and Analysis of librarycachepin problems in a single Oracle instance
Simulation and Analysis of library cache pin problems with a single Oracle instance
Local Environment: Oracle 10.2.0.5 x86-64bit for RHEL5.8 x86-64bit
First
How to grant users the permission to view Stored Procedure definitions and stored procedure Permissions
A user asked me how to grant a user the permission to view the definition of certain stored procedures, rather than letting the user modify or
Differences between oracle and other databasesWhat is the difference between oracle and other databases? The biggest difference is that oralce has databases before users. Create a database before creating a user. The user belongs to the database.How
Oracle record is locked by another user
Let's talk about the cause of the problem: in the afternoon, modify the table in the database, save the modification, but did not submit it. Then, I suddenly went to another place to debug, unplug the network
Oracle cursor, process, and reference type
0. Common functions
Substr (str, start, length); // reverse indexes can be performed. If length is not specified, it ends with to_number (str); // str to numberselect to_char (sysdate, 'yyyy-mm-dd hh24: mi:
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