數(shù)據(jù)定義語(yǔ)言DDL
站在用戶(hù)的角度思考問(wèn)題,與客戶(hù)深入溝通,找到上思網(wǎng)站設(shè)計(jì)與上思網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶(hù)體驗(yàn)好的作品,建站類(lèi)型包括:做網(wǎng)站、成都做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、空間域名、虛擬空間、企業(yè)郵箱。業(yè)務(wù)覆蓋上思地區(qū)。
create database db_name;
create table table_name (column_name data_type,...);
create view view_name as select .....;
create index on table_name (column_name,...);
drop database db_name;
drop table table_name;
drop view view_name;
drop index table_name.index_name;(不同sql方言不同,這是sql server的寫(xiě)法)
alter table table_name
add column_name data_type
drop column_name;
change column_name new_column_name data_type,...
modify column_name data_type,...
數(shù)據(jù)操縱語(yǔ)言DML
select column_name from table_name where ...
update table_name set column_name=value where ...
insert into table_name (cloumn_name,...) values (value1,...)
delete from table_name where ...
數(shù)據(jù)控制語(yǔ)言DCL:控制權(quán)限
grant select,updat,insert,delete on table_name to 'user_name'@'host_name';
revoke select,updat,insert,delete on table_name to 'user_name'@'host_name';
事務(wù)控制語(yǔ)言TCL:控制事務(wù)
commit
rollback