select fph from mz_brsf
成都創(chuàng)新互聯(lián)公司是專業(yè)的薌城網(wǎng)站建設(shè)公司,薌城接單;提供成都網(wǎng)站制作、網(wǎng)站建設(shè)、外貿(mào)網(wǎng)站建設(shè),網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行薌城網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊,希望更多企業(yè)前來合作!
whereje 200;
2.select sum(je) from mz_brsf
where sfsj = ?'2012-01-01'
and sfsj '2012-02-01';
3.delete from mz_bfsf
where cfh is null;
4.update mz_bfsf
set substr(sfsj,1,4) =2013
where ks ='內(nèi)科' ;
5. select ks, sum(je) from mz_bfsf
group by ks
having sum(je) 500;
6.select top 2 ys,sum(je)
from mz_bfsf
group by ys
order by sum(je) desc;
7.update ?a
set a.zc = b.zc
from mz_bfsf a,mz_brxx b
where ?a.ys = b.ys
create table 學(xué)生表
(
學(xué)號 char(10) primary key,
姓名 char(10),
年齡 int,
性別 char(2) check (sex IN ('男','女')),
家庭住址 char(40),
聯(lián)系 char(20)
)
mysql create table Score
- (Sno char(10),Cno char(10),Grade real,
- constraint pk foreign key(Sno)
- references student(Sno),
- constraint pk1 foreign key(Cno)
- references Course(Cno));
Query OK, 0 rows affected (0.01 sec)
2. 增加、修改和刪除字段,要求:
(1) 給Student表增加一個memo(備注)字段,類型為Varchar(200)
mysql alter table student add memo varchar(200);
Query OK, 0 rows affected (0.25 sec)
Records: 0 Duplicates: 0 Warnings: 0
(2)將memo字段的類型修改為Varchar(300)
mysql alter table student
- modify memo varchar(300);
Query OK, 0 rows affected (0.06 sec)
(3)刪除memo 字段
mysql alter table student drop memo;
Query OK, 0 rows affected (0.02 sec)