• Tidak ada hasil yang ditemukan

Lab 01(SQL) Manual

N/A
N/A
Protected

Academic year: 2023

Membagikan "Lab 01(SQL) Manual"

Copied!
2
0
0

Teks penuh

(1)

Lab 01(SQL) Manual

1. insert into Table_name VALUES(Value1, Value2)

insert into voter VALUES(101501,

"Uttara")

2. Select * from Table_name => Projection

3. Select * from Table_name where Criteria=value and Criteria1=value1; =>

Selection

Select * from Student where Id=1 and name=’Shuva’;

4. Update: Update Table_name set

attribute=value where

someattribute=somevalue;

Update student set name=’Rafiq’

where Id=2767;

5. Delete: Deletes a row

(2)

Delete from Table_name where someattribute=somevalue;

6. Delete from Student where Id=2767;

7. Like: Find specific pattern from table :

Select * from student where name like ‘%s’

8. Between: Find values within a range

Select * from student where age between 25 and 30;

9. In: Specify multiple values in a whee clause

Select * from student where name ln (‘rajshahi’, ‘barisal’)

Referensi

Dokumen terkait

Attribution is essential when quoting or paraphrasing from these works.;To request permission to adapt, modify or use the works outside of the limits of these terms and conditions,