salim mail: salim.sucipto@gmail phone: 0815-188-2384 ym: talim_bansal
DESCRIPTION
DML – Data Manipulation Language. Salim Mail: [email protected] Phone: 0815-188-2384 YM: talim_bansal Blog: http://salimsribasuki.wordpress.com. Overview. INSERT : Inserting records into table UDPATE : Updating certain column of the record - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/1.jpg)
SalimMail : [email protected] : 0815-188-2384YM : talim_bansalBlog : http://salimsribasuki.wordpress.com
DML – Data Manipulation Language
1
![Page 2: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/2.jpg)
Overview
2
-INSERT : Inserting records into table-UDPATE : Updating certain column of the record-DELETE : Delete or remove records from the table
![Page 3: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/3.jpg)
DML - Insert
3
-Insert record one by one:insert into ti3k_item_master (item_code, item_name, item_uom, remark)values ('BR001','Bearing 5mm','PCS','Bearing with size 5mm');
-Insert multiple records:insert into ti3k_item_master (item_code, item_name, item_uom, remark)values ('FT001','Fitting Units','EACH','Unit for fitting'),('LB023','Lubricants','CAN',null),('CS031','Top Casing','EACH','Casing bottle');
![Page 4: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/4.jpg)
Select / Query / Retreive Data
4
-To retreive / show the data/record of the table, use:Select * from table_name;
Example:Select * from ti3k_item_master;
![Page 5: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/5.jpg)
DML - Update
5
-Update one column:Update table_nameSet column_name = valueWhere.....
Example:Update ti3k_item_masterSet item_uom =‘UNIT’Where item_id = 2;
![Page 6: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/6.jpg)
DML - Update
6
-Update multiple column:Update table_nameSet column_name1 = value1, column_name2 = value2Where.....
Example:Update ti3k_item_masterSet creation_date = ‘2011-11-07’, created_by =‘Salim’;
![Page 7: Salim Mail: salim.sucipto@gmail Phone: 0815-188-2384 YM: talim_bansal](https://reader035.vdocuments.us/reader035/viewer/2022072014/56812eed550346895d94891f/html5/thumbnails/7.jpg)
DML - Delete
7
Delete from table_nameWhere.....
Example:Delete from ti3k_item_masterWhere item_code =‘LB023’;