Answer Posted / ambika balasubramanian
DDL => Data Definition Language
DML => Data Manipulation Language
DDL Commands
1. CREATE TABLE
2. ALTER TABLE
3.DESCRIBE TABLE
4.DROP TABLE
* CREATE TABLE
Syntax:
create table tablename( fieldname1 datatype(),fieldname2
datatype()...);
*ALTER TABLE
1. ADD
2.MODIFY
*ADD
Syntax:
alter table tablename ADD(fieldname datatype()...);
*modify:
syntax:
Alter table tablename modify(fieldname datatype()...);
*DESCRIBE TABLE
Syntax:
DESC(table name)
*DROP TABLE
Syntax: DROP TABLE(Table name);
DML Commands:
1.INSERT
2.SELECT
3.UPDATE
4.DELETE
*INSERT:
SYN:
INSERT INTO Tablename values();
*SELECT:
syn:
select*from <table name>
*UPDATE:
SYN:
update<table name> set to(calculation);
*DELETE:
SYN:
delete form<table name>;
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
Which function would you use to replace a record in a database in php?
What are the php variables?
What are differences between PECL and PEAR?
what is the current salary package in India for a PHP programmer who has 1.5 years experience
How to create a session? How to remove data from a session?
How do you execute a php script from the command line?
Are php sessions secure?
What are the encryption functions available in PHP?
Explain briefly about a search-friendly site looks like?
How can you submit a form without a submit button?
What are the features of php 7?
How can we display information of a variable and readable by a human with php?
How to redirect https to http url through .htaccess?
What is env in laravel?
Is it possible to remove the html tags from data?