SQL題目,誰幫忙做一下,明天考試急用

時間 2021-06-13 06:35:20

1樓:謇霜

(1)create table sc (sno not null,cno not null,grade)

(2)select * from student where sname like '司馬%'

(3)create view pc_view with encryption as select * from student shere sdept='計算機系'

(4)grant alter,insert on student to u1

(5)select sname ,sno from student s,course c,sc a where a.sno=s.sno and c.cno=a.cno and

c.cname='資料庫原理及應用' order by s.sno desc

2樓:

出的題不嚴謹啊,居然不告訴資料型別,樓上的建表沒加資料型別1、create table sc

(sno varchar(10) not null,cno varchar(10) not null,grade int)

幫忙做個SQL題目,SQL題目 幫忙做下

我頭一次看到沒有問題,而且還有100分附送的事情 好像答案都有了吧?sql題目 幫忙做下. 建立資料庫 create database test go 使用資料庫 use test go 建立借書卡表 沙蒙牟涵忍 用select語句就行啊 格式大體是 select 你要查的東西 from 表 whe...

幫忙做一題小學題目

如果這個問題要考慮最優解的話,分析如下 根據聖騎士平凡的啟發,我考慮到中間狀態會多一個 2000 假設為a點 1000 假設為b點 最先開始的有3000根蘿蔔,那麼肯定要回來3次,那往返就是5倍的路程驢子消耗的1000根蘿蔔,而且還要把2000的蘿蔔運到a點那麼1000 5 200,a點離出發點是2...

關於sql語句,實在不知道一下的題目怎麼做

1 update student set num 60 substring num,3,len num 2 select count distinct dept as 部門總數 from teacher select dept as 部門 count tno as 教師數量 from teacher...