oracle basic statement

Enter SQL    https://blog.csdn.net/weixin_33908217/article/details/89804916

sqlplus.exe / as user name;

 

Create a table    https://www.cnblogs.com/qmfsun/p/3817344.html

Table EMP Create (   
  the empid Interger Primary Key, 
  EmpName VARCHAR2 (20 is) Not null, 
  empsex VARCHAR2 (2) default 'MALE' Check (stusex in ( 'MALE', 'FEMALE')),
empdate DATE,
empmoney Number (50,2 )
); 

the Oracle data types: https://www.cnblogs.com/buxingzhelyd/p/8984173.html
Oracel no Boolean type

 

Insert data

insert into emp values(1,'test','male',to_date('20140214','yyyymmdd'),1200.55);

 

插入date:https://blog.csdn.net/paullinjie/article/details/80615310

 

Guess you like

Origin www.cnblogs.com/Jasper-changing/p/11458865.html