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
How do you check is php not empty?
What is the meaning of a persistent cookie?
What is the purpose of the '.myd' file extension? What do thes file contain?
What is == and === in php?
How do I start a php session?
Which variable declarations within a class is invalid in php?
What is properties of class?
What is php trait?
Are objects passed by value or by reference?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
What is difference between strstr() and stristr()?
How many types of inheritances used in php and how we achieve it.
What is the difference between single quoted string and double quoted string?
What is php explain?
What is the difference between the include() and require() functions?