BookStore数据库中有图书表Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount),其中 PublishTime是datetime类型。
将Book表中的所有“外语”类图书的价格降低10%,并将折扣均设为8折。SQL语句:
UPDATE Book SET ________ Where BookSort ='外语'。
将Book表中的所有“外语”类图书的价格降低10%,并将折扣均设为8折。SQL语句:
UPDATE Book SET ________ Where BookSort ='外语'。
举一反三
- BookStore数据库中有图书表Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount),其中 PublishTime是datetime类型。 查询Book表中的图书类别(BookSort),要求每个类别只显示一次。SQL语句: SELECT _________ BookSort FROM Book
- BookStore数据库中有图书表Book(BookCode,BookName,Author,PublisherCode,PublishTime,BookSort,ISBN,BookPicture,ContentInro,Price,Discount),其中PublishTime是datetime类型。 A: DISTINCT B: ONLY C: ONE D: PERCENT
- BookStore数据库中有图书表 Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount) 查询图书名称(BookName)含有“程序”的图书信息。SQL语句: SELECT BookCode,BookName,Author,Price,Discount FROM Book WHERE Name=“%程序%”
- BookStore数据库中有图书表Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount),其中 PublishTime是datetime类型。 显示图书的最高价、最低价、平均价、最高价与最低价之间的差值。SQL语句
- BookStore数据库中有图书表 Book(BookCode, BookName, Author, PublisherCode, PublishTime,BookSort, ISBN, BookPicture, ContentInro, Price, Discount) 查询作者名长度大于等于8的图书信息,显示书名(BookName)及作者(Author)。SQL语句: SELECT BookName, Author FROM Book WHERE Lenth(Author)= 8