CREATE
CREATE TABLE table_name( col1 varchar(20), col2 int, primary key(col1) )
SELECT
select col1, col2 from table_name where 1=1 order by col1;
INSERT
INSERT INTO table(col1, col2, current_time,...) values('val1', 'val2', 'now()' ... );
now() = 현재날짜 yyyy-mm-dd hh:mm:ss format으로 저장
Delete
Delete from table_name where 1=1;
반응형
'웹프로그래밍 > PHP' 카테고리의 다른 글
inner join, outer join (0) | 2019.05.03 |
---|