在KingbaseESv8中执行以下SQL命令: CREATETABLEtest(idserialprimarykey,namevarchar); INSERTINTOtest(name)VALUES(’aaa’),(’bbb’),(’ccc’); SELECT*FROMtest9; 则查询结果中name=’bbb’的id值是?()
A: 0
B: 1
C: 2
A: 0
B: 1
C: 2
举一反三
- VALUES语句用于计算或输出一个行合集,以下VALUES语句使用正确的是?() A: INSERTINTOstudents(name)VALUES(’Tom’),(’Cat’); B: VALUES(3*9); C: VALUES(1,’WE’),(2,’ARE’),(3,’GOOD’) D: SELECTVALUES(1,’aaa’),(2,’bbb’),(3,’ccc’)ASt(id,info);
- 执行lis1 = [x*3 for x in "ABC"]后,lis1结果是( )。 A: ["AAA", "AAA", "AAA"] B: ["BBB", "BBB", "BBB"] C: ["CCC", "CCC", "CCC"] D: ["AAA", "BBB", "CCC"]
- 若有chars[3][3]={"AAA","BBB","CCC"};说明语句,则与它等价的语句是()。 A: char**s={"AAA","BBB","CCC"}; B: char*s[3]={"AAA","BBB","CCC"}; C: chars[][5]={"AAA","BBB","CCC"}; D: chars[][3]={"AAA","BBB","CCC"};
- 编写如下程序: Private Sub Command1_Click; Dim m As Integer, n As Integer m = 2 : n = 1 Select Case m Case 1 Select Case n Case 1 Print "AAA" Case 2 Print "BBB" End Select Case 2 Print "CCC" End Select End Sub 程序运行后,单击命令按钮Command1,输出结果为 A: BBB B: CCC C: AAA D: 1
- 定义三个函数如下:int aaa() {printf("hi");}int bbb(){printf("hello"); }int ccc(){ printf("bye"); }若通过指针数组引用三个函数,则正确的语句应该是() A: int (*p[3])()={&aaa,&bbb,&ccc}; B: int *p[3]={ aaa,bbb,ccc}; C: int (*p)[3]={aaa,bbb,ccc}; D: int (*p)()={&aaa,&bbb,&ccc};