Aid

Book Table sp_help 

sp_help borrow table 

sp_help readers table 

the SELECT * from readers watch 

the SELECT * from Lending table 

the SELECT * from books table 



delete books table 
    where books number = ' P913.2 / 530 ' 

Update Book table 
    set   unit price = 40 , = Press ' electronic industry Press ' 
    WHERE book number = ' TP316 / ZW6 ' 

INSERT borrow table 
    values ( ' 081 688 ' , ' TP311.13 / CM3 ' , getdate (), null ) 
INSERT borrow table
    values ( ' 081 688 ' , ' TP311.132 / ZG1 ' , getdate (), null ) 
INSERT borrow table 
    values ( ' 081 690 ' , ' TP311.132 / ZG1 ' , getdate (), null ) 
INSERT borrow table 
    values ( ' 081 690 ' , ' TP913.2 / 530 ' , getdate (), null ) 

Update book table 
    set Press = ' Electronics industry Press ' 
    the WHERE author = ' seedlings Shenandoah '
 
INSERT borrow table
    values(' 081 688 ' , ' TP311.13 / CM3 ' , getdate (), null ) 

drop the Table # TMP2, # tmp3 


Update readers table 
    set name = ' Ping ' , office phone = ' 68,321,789 ' 
    the WHERE name = ' Wang Ping ' 

INSERT books table 
    values ( ' TP913.2 / 531 ' , ' the Java foundation ' , ' king of solidarity ' , ' Science Press ' , 100 ) 

Update Course, 
    the SET COURSE_NAME = 'The high number of '
    where Course_No='20191'

select * from student

select * from SelectCourse

select * from Course

select * from Student

update Course
    set Course_Credits=4
    where Course_No='20181'or Course_No='20182'

select *
from view_course_credits
go

select * from view_Studentinfo
go

sp_help view_Studentinfo

sp_helptext view_Studentinfo

sp_depends view_Studentinfo

sp_helptext view_

drop view view_Avg

select * from view_Is_Student_b

select * from view_Is_Student_Birth

select * from view_Avg

sp_helptext selectcourse

 

Guess you like

Origin www.cnblogs.com/King-boy/p/10963685.html
Aid