15、以下语句创建student数据库,完善该语句,在用户定义文件组stgp创建次数据文件stdat。 CREATE DATABASE student ON (NAME = student, FILENAME = 'E:\mydb\student.mdf' ), ____________ stgp (NAME = stdat, FILENAME = 'E:\mydb\studat.ndf' )

15、以下语句创建student数据库,完善该语句,在用户定义文件组stgp创建次数据文件stdat。 CREATE DATABASE student ON (NAME = student, FILENAME = 'E:\mydb\student.mdf' ), ____________ stgp (NAME = stdat, FILENAME = 'E:\mydb\studat.ndf' )


参考答案和解析
<pre>CREATE TABLE student ( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT COMMENT '用户id', name VARCHAR(20) UNIQUE NOT NULL COMMENT '学生姓名', tel CHAR(11) NOT NULL COMMENT '手机号码', gender ENUM('男', '女', '保密') NOT NULL COMMENT '性别', hobby SET('运动', '唱歌', '跳舞','戏剧','手工','其他') NOT NULL COMMENT '爱好', time TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '入学时间') DEFAULT CHARSET=utf8;</pre>

相关考题:

已知Student类是一个空类,stu1和stu2是Student类的两个对象,则通过“stu1.name='李晓明'”语句增加的属性可以通过()访问。 A.Student.name、stu1.name或stu2.nameB.Student.name或stu1.nameC.stu1.name或stu2.nameD.stu1.name

若用如下的SQL语句创建一个表student: CREATE TABLE student(N0 CHAR(20) NOT NULL, NAME CHAR(8) NOT NULL, SEX CHAR(2) , AGE INT) 可以插入到表中的是______。A.(‘1031’,‘曾华’,男,23)B.(‘1031’,‘曾华’,NULL,NULL)C.(NULL,‘曾华’,‘男’,‘23’)D.(‘1031’,‘NULL’,‘男’,23)

若用如下的SQL语句创建一个student表: CREATE TABLE student (NO C(4) NOT NULL,NAME C(8) NOT NULL, SEX C(2),AGE N(2)) 可以插入到student表中的是A.('1031','李林',男,23)B.('1031','李林',NULL)C.(NULL,'李林','男','23')D.('1031',NULL,'男',23)

设有如下的用户定义类型: Type Student number As String name As string age As Integer End Type 则以下正确引用该类型成员的代码是______。A. Student name="李明”B.Dim s As Student s.name="李明"C.Dim s As Type Student s.name="李明"D.Dim s As Type s.name="李明"

根据SQL标准,创建一个视图abc,通过该视图只能对表student中系dept为‘IS’的记录进行更新操作。下面哪条语句适用?()A create view abc as select * from student where dept=’IS’B create view abc as select * from student where dept=’IS’ with check optionC create view abc as student where dept=’IS’D create view abc as select dept=’IS’ from student

有如下语句: Type Student Name As String Age As Integer Sex As String End Type Dim Stu As Student With Stu .Name="张红" .Age=22 .Sex="女" End With 执行Print Stu.Age语句后的结果是A.张红B.22C.“女”D.Age

如果学生表STUDENT是使用下面的SQL语句创建的CREATE TABLE STUDENT(SNO C(4) PRIMARY KEY NOT NULL,;SN C(8),;SEX C(2),;AGE N(2) CHECK(AGE>15 AND AGE<30))下面的SQL语句中可以正确执行的是A.INSERT INTO STUDENT(SNO,SEX,AGE)VALUES (“S9”,“男”,17)B.INSERT INTO STUDENT(SN,SEX,AGE)VALUES (“李安琦”,“男”,20)C.INSERT INTO STUDENT(SEX,AGE)VALUES (“男”,20)D.INSERT INTO STUDENT(SNO,SN)VALUES (“S9”,“安琦”,16)

以下语句可以实现将文件filename1复制为filename2的是 ______。A.Name filename1,filename2B.Copy filename1, filename2C.FileCopy filename1,filename2D.Duplicate filename1, filename2

在SQL Server 2008中,设要为数据库DB1添加一个新的数据文件,该文件的逻辑名为filex,物理文件名为filex.n(if,存储位置为D:\DB1,初始大小和最大大小均采用系统默认值,增长方式为自动增长,每次增加20%。下列语句中正确的是( )。A.ALTER DATABASE DB1 ADD FILE(NAME=filex,FILENAME=D:\DB1\filex.ndf,FILEGROWTH=20)B.ALTER DATABASE DB1 ADD FILE(NAME=filex,FILENAME=D:\DB1\filex.ndf,FILEGROWTH=20%)C.ALTER DATABASE DB1 ADD FILE(NAME=filex,FILENAME=ˊD:\DB1\filex.ndfˊ,FILEGROWTH=20)D.ALTER DATABASE DB1 ADD FILE(NAME=filex,FILENAME=ˊD:\DB1\filex.ndfˊ,FILEGROWTH=20%)

●以下的SQL 99语句,Student与Person之间的关系是 (62) 。CREATE TYPE Person(name char(20),address varchar(50));CREATE TYPE Student(under Person(degree char(20)department char(20));(62)A.类型继承B.类型引用C.表继承D.无任何关系

在SQL Server 2008中,设先对MyDB数据库进行了一次完整备份,然后对该数据库进行了一次日志备份,这两次备份均备份在BK设备上。假设BK设备上只有这两次备份的内容。现要从备份中恢复My-DB数据库,正确的恢复过程及语句是( )。A.restore log MyDB from BK with file=1,norecoveryrestore database MyDB from BK with file=2B.restore log MyDB from BK with file=1,norecoveryrestore database MyDB from BK with file=2,norecoveryC.restore database MyDB from BK with file=1.norecoveryrestore log MyDB from BK with file=2,norecoveryD.restore database MyDB from BK with file=1,norecoveryrestore log MyDB from BK with file=2

下列对$student使用正确的是()。 A.$student-$getName();B.$student-name;C.$student-$name;D.$student.getName();

若用如下的SQL语句创建一个student表: CREATE TABLE student( N0 C(4)NOT NULL, NAME C(8)NOT NULL, SEX C(2), AGE N(2) ) 可以插入到student表中的是A.('1031','曾华',男,23)B.('1031','曾华',NULL,NULL)C.(NULL,'曾华','男','23')D.('1031',NULL,'男',23)

如果学生表STUDENT是使用下面的SQL语句创建的:CREATE TABLE STUDENT(SNO C(4) PRIMARY KEY NOT NULL,,;SN C(8),;SEX C(2),;AGE N(2) CHECK(AGE>15 AND AGE<30))下面的SQL语句中可以正确执行的是( )。AA.BB.CC.DD.答案

数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中所有的数据,下列哪个SQL语句是正确的()A、Select* From StudentB、Select Name From StudentC、Select Name,Age,IDCard From StudentD、Select Name,Age,IDCard,Sex From Student

类Student代码如下:  class Student{    String name;  int age;  Student(String nm){  name = nm; } }  执行语句Student stu = new Student()后,字段age的值是哪项?() A、 0B、 nullC、 falseD、 编译错误

若用如下的SQL语句创建一个student表:CREA TETABLE student(NO CHAR(4)NOT NULL,NAME CHAR(8)NOT NULL,SEX CHAR(2),AGE INT)可以插入到student表中的是()A、(’1031’,’曾华’,男,23)B、(’1031’,’曾华’,NULL,NULL)C、(NULL,’曾华’,’男’,’23’)D、(’1031’,NULL,’男’,23)

下列T-SQL命令创建的数据库名称是()。 CREATE DATABASE stdb ON (NAME=student1, FILENAME="d:/stdat1.mdf"), (NAME=student2, FILENAME="d:/stdat2.ndf")A、stdat1B、student1C、stdbD、student2

数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()A、Select* From Student Where Sex=’男’B、Select* From Student Where Number NotIn(Select Number From Student Where Sex=’男’)C、Select* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)D、Select* From Student Where Sex’男’

数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键是Number,数据类型为Varchar(20)。要求写删除学号为“20140001”的学生,下列哪个SQL语句是正确的()A、Delete Student‘20140001’B、Delete Student“20140001”C、Delete Student Where Number=‘20140001’"D、Delete From Student Where Number=”20140001”"

在SQL Sever中,创建数据库student,使用的语句是()。A、CREATE TABLE studentB、CREATE VIEW studentC、CREATE PROC studentD、CREATE DATABASE student

在Transact-SQL语法中,以下SELECT语句正确的是()。A、SELECT * FROM studentB、SELECT * FROM student WHERE GETDATE()C、SELECT * FROM student ORDER st_idD、SELECT * FROM student BY St_name

单选题下列T-SQL命令创建的数据库名称是()。 CREATE DATABASE stdb ON (NAME=student1, FILENAME="d:/stdat1.mdf"), (NAME=student2, FILENAME="d:/stdat2.ndf")Astdat1Bstudent1CstdbDstudent2

单选题在Transact-SQL语法中,以下SELECT语句正确的是()。ASELECT * FROM studentBSELECT * FROM student WHERE GETDATE()CSELECT * FROM student ORDER st_idDSELECT * FROM student BY St_name

单选题类Student代码如下:  class Student{    String name;  int age;  Student(String nm){  name = nm; } }  执行语句Student stu = new Student()后,字段age的值是哪项?()A 0B nullC falseD 编译错误

单选题在SQL Sever中,创建数据库student,使用的语句是()。ACREATE TABLE studentBCREATE VIEW studentCCREATE PROC studentDCREATE DATABASE student

单选题以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。  struct node{      char name[20];      int age;      int sex; }student[5],*p;  p=student;Ascanf(“%s”,student[0].name);Bscanf(“%d”,student[0].age);Cscanf(“%d”,(p-sex));Dscanf(“%d”,p-age);

单选题类Student代码如下:D   class Student{   String name;   int age;   Student(String nm){ (构造方法)   name = nm;  }  }   执行语句Student stu = new Student()后,字段age的值是哪项?()A 0B nullC falseD 编译错误