文件名称:Lab10
-
所属分类:
- 标签属性:
- 上传时间:2013-12-15
-
文件大小:539byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一、请用T-SQL语句实现以下题目要求。
1、熟悉变量的声明、变量的赋值、输出结果
目的:查询并返回product产品表中产品名称以C开头的产品的条数
要求:产品名称以C开头的条件用变量来表示,查询出来的产品条数也用变量表示,并最终需要返回 The sum of the product is +查询出来的产品条数。
2、熟悉IF语句
给一变量赋值字符串 THIS IS MY BOOK ,如果此字符串的长度大于10,则返回其字符串第一位到第四位,否则返回后四位字符串。
3、熟悉循环语句
实验内容:求1-100之间能被7整除的整数之和。
4、熟悉所有示例文件中的T-SQL语句
-First, please realize the following questions asked to use T-SQL statements. A familiar variable declarations, variable assignment, output purpose: query and return product to product table Name C at the beginning of the number of product requirements: product names that begin with the condition C variables to represent, check out the product also said that with the number of variables and eventually need to return to ' The sum of the product is' + check out the product of the number. 2, familiar with the IF statement to a variable assignment string ' THIS IS MY BOOK' , if the length of this string is greater than 10, then return to their string of first to fourth place, otherwise it returns after four strings. 3, familiar loop experiment: can be an integer divisible by 7 and between seeking 1-100. 4, familiar with all the sample files in the T-SQL statement
1、熟悉变量的声明、变量的赋值、输出结果
目的:查询并返回product产品表中产品名称以C开头的产品的条数
要求:产品名称以C开头的条件用变量来表示,查询出来的产品条数也用变量表示,并最终需要返回 The sum of the product is +查询出来的产品条数。
2、熟悉IF语句
给一变量赋值字符串 THIS IS MY BOOK ,如果此字符串的长度大于10,则返回其字符串第一位到第四位,否则返回后四位字符串。
3、熟悉循环语句
实验内容:求1-100之间能被7整除的整数之和。
4、熟悉所有示例文件中的T-SQL语句
-First, please realize the following questions asked to use T-SQL statements. A familiar variable declarations, variable assignment, output purpose: query and return product to product table Name C at the beginning of the number of product requirements: product names that begin with the condition C variables to represent, check out the product also said that with the number of variables and eventually need to return to ' The sum of the product is' + check out the product of the number. 2, familiar with the IF statement to a variable assignment string ' THIS IS MY BOOK' , if the length of this string is greater than 10, then return to their string of first to fourth place, otherwise it returns after four strings. 3, familiar loop experiment: can be an integer divisible by 7 and between seeking 1-100. 4, familiar with all the sample files in the T-SQL statement
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lab10.sql
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.