随笔分类 - SQL学习
SQL Server 数据库学习
摘要:添加约束、增删改 1 use StudentDB2 2 go 3 创建学生表 4 create table StudentInfo( 5 --studentId int primary key not null identity(1,1), 设置为主键,并自增长 6 studentId int no
阅读全文
摘要:1、 首先创建存储过程; 2、 然后分别创建序列,生成基金公司编号、基金代码、活期账号、理财账号、基金账户、合同号。要求如下: 基金公司编号,字母K+5位数字。 基金代码,字母V+6位数字。 活期账号,13位数字。 理财账号,13位数字。 基金账户,字母L+5位数字。 合同号,字母Z+6位数字。 3
阅读全文