DML – Data Manipulation Language
This presentation is the property of its rightful owner.
Sponsored Links
1 / 7

Salim Mail: [email protected] Phone: 0815-188-2384 YM: talim_bansal PowerPoint PPT Presentation


  • 135 Views
  • Uploaded on
  • Presentation posted in: General

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

Download Presentation

Salim Mail: [email protected] Phone: 0815-188-2384 YM: talim_bansal

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

DML – Data Manipulation Language

Salim

Mail: [email protected]

Phone: 0815-188-2384

YM: talim_bansal

Blog: http://salimsribasuki.wordpress.com


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

Overview

  • INSERT : Inserting records into table

  • UDPATE : Updating certain column of the record

  • DELETE : Delete or remove records from the table


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

DML - Insert

  • 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');


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

Select / Query / Retreive Data

  • To retreive / show the data/record of the table, use:

  • Select * from table_name;

  • Example:

  • Select * from ti3k_item_master;


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

DML - Update

  • Update one column:

  • Update table_name

  • Set column_name = value

  • Where.....

  • Example:

  • Update ti3k_item_master

  • Set item_uom =‘UNIT’

  • Where item_id = 2;


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

DML - Update

  • Update multiple column:

  • Update table_name

  • Set column_name1 = value1, column_name2 = value2

  • Where.....

  • Example:

  • Update ti3k_item_master

  • Set creation_date = ‘2011-11-07’, created_by =‘Salim’;


Salim mail salim sucipto gmail phone 0815 188 2384 ym talim bansal

DML - Delete

Delete from table_name

Where.....

Example:

Delete from ti3k_item_master

Where item_code =‘LB023’;


  • Login