Types To Start SQL
Types To Start SQL
Developed By
- Dalwadi manish.
SUBMITTED TO
----------
Types to start SQL*Plus
Dos Base
In isql*plus
Using SQL*Plus
Dos Base
For Starting Sql*Plus in
“Dos” We have to Just Write
down in Dos :=
sqlplus
For Ex :=
http://localhost/isqlplus
After writing this link in link bar
Isqlplus is start.
In isql*plus we can easily
save our data.
2
And Easily load our data.
D:\temp\emp_sql
3
Using SQl*Plus
SQL start using SQL*Plus.
SystemDatabas
User name = scott e
Password = tiger
Username Password
Grant
After create user we have to give a permission to use and
connect this user.
OR
SQL>grant create session, create table, create procedure,
2 create sequence, create view, create trigger to ssit;
Revoke
OR
SQL>revoke create session, create table, create procedure,
2 create sequence, create view, create trigger to ssit;
Lock & Unlock User
But
SQL>select table_name from user_tables;
1.Primary key
2.Unique
3.Not Null
4.Check
5.Foreign Key
Like :=
Name
----------------------
OWNER
CONSTRAINT_NAME
CONSTRAINT_TYPE
TABLE_NAME
SEARCH_CONDITION
R_CONSTRAINT_NAME
SQL> select
owner,constraint_name,constraint_type,search_con
dition,table_name from user_constraints;
Constraint_type
('east','EAST','west','WEST','north','NORTH','south','SOUTH')
SQL>Spool SSITMCA
in spool name space is not required. If space is occur then
Error will be display on screen.
Like :=
SQL>spool off
Saving All
Data as any Extension
Save the data as a .csv extension.
Syntax :=
spool drivename:\.csv
Ex :=
Where data you
SQL>spool C:\SSIT.doc have to store ?
Save Each data
If you want to save your data each query wise &
save your data with any extension wise,
Then
SQL>save c:\SSIT.sql
SQL>Save c:\SSIT.doc
SQL>Save c:\SSIT.csv
SQL>--SSIT Records