Hibernate考试

数据库表account对应实体类为Account类,以下HQL语句错误的有()。A、select * from AccountB、From AccountC、From Account as modelD、Select * from account

题目

数据库表account对应实体类为Account类,以下HQL语句错误的有()。

  • A、select * from Account
  • B、From Account
  • C、From Account as model
  • D、Select * from account
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

If you are staying in the UK for more than 6 months, it may be useful to open a UK bank account. There are a lot of advantages of having a UK current (checking) account:

Paying bills

Many landlords prefer to collect rent directly from a bank account.

You may be able to obtain cheaper services if you pay bills directly from a bank account,e. g. telephone, gas/water/electricity.

If you are given a chequebook, you can also write cheques as a safe way of paying for things.

Cash

You can easily obtain money from cash machines,or pay directly from your account using a debit card(借记卡).

Saving money

It is generally cheaper to use a UK account than it is to pay by credit card(信用卡)or withdraw (提取) cash from a foreign bank.

Employment

If you work in the UK,some employers require you to have a bank account so that you can get your pay.

Advantages of UK Current Account

Paying bills: 1) to pay rent directly from ①

2) to obtain ② services

3) to pay for things with cheques safely

Cash:1)to obtain money from ③ easily

21 to pay directly from your account

Saving money:cheaper to use a ④ account

Employment:to get your ⑤ through a bank account


答案:①bank account②cheaper③cash machines④UK⑤pay

第2题:

A user selects their proper domain and is unable to log into their Windows computer. The error states: system cannot log you on to the domain because the system‘s computer account in its primary domain is missing or the password on that account is incorrect.Which of the following is the MOST likely cause for this error?()

A. The computer‘s account was removed from Active Directory.

B. The user‘s account was removed from Active Directory.

C. The computer was disjoined from the domain.

D. The user typed in the wrong password


参考答案:C

第3题:

有下列SQLSELECT语句:SELECT*FROM 工资表 WHERE 基本工资<=3000 AND 基本工资>=1000下列与该语句

有下列SQLSELECT语句:

SELECT*FROM 工资表 WHERE 基本工资<=3000 AND 基本工资>=1000

下列与该语句等价的是( )。

A.SELECT*FROM工资表WHERE基本工资BETWEEN 1000 AND 3000

B.SELECT*FROM工资表WHERE基本工资BETWEEN 3000 AND 1000

C.SELECT*FROM工资表WHERE基本工资FROM 1000 INTO 3000

D.SELECT*FROM工资表WHERE基本工资FROM 3000 INTO 1000


正确答案:A
解析:SQL查询语句中特殊运,算 BETWEEN…AND…的含义为“…和…之间”,意思为“…和…之间”相当于逻辑与运算中的(A>=AND>=B,其中A>B),选项B)中数值放置错误,选项C)和选项D)语句错误。

第4题:

以下哪条SQL语句会返回一个错误?()

  • A、SEL*FR天空;
  • B、select恒星from天空;
  • C、SELECT恒星FROM天空;
  • D、SELECT*FROM天空;

正确答案:A

第5题:

You have a domain controller named Server1 that runs Windows Server 2003 Service Pack 2 (SP2).You start Server1 in Directory Services Restore Mode and attempt to log on by using the username administrator and a password of Pa$$w0rd. The logon attempt fails.You restart Server1 normally and successfully log on to the server by using the username administrator and a password of Pa$$w0rd.You need to ensure that you can log on to Server1 in Directory Services Restore Mode.What should you do? ()

A. From ntdsutil.exe, run Set DSRM Password.

B. From ntdsutil.exe, run Security account management.

C. From Active Directory Users and Computers, select the Account is trusted for delegation option for the Administrator account.

D. From Active Directory Users and Computers, select the Store password using reversible encryption option for the Administrator account.


参考答案:A

第6题:

有如下SQL语句: SELECT姓名FROM学生表WHERE学号IN; (SELECT学号FROM成绩表WHERE成绩>90) 下列哪条命令与该SQL语句等价

A.SELECT姓名FROM学生表WHERE EXISTS; (SELECT学号FROM成绩表WHERE成绩>90)

B.SELECT姓名FROM学生表WHERE EXISTS; (SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)

C.SELECT姓名FROM学生表WHERE学号EXISTS; (SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)

D. SELECT姓名FROM学生表WHERE学号=; (SELECT学号FROM成绩表WHERE成绩>90)


正确答案:B
解析:IN是包含运算,此处子查询中得到多个结果,记录不惟一,因此不用“=”运算符;EXISTS是谓词,用来检查在子查询中时候有结果返回。

第7题:

有下列SQL SELECT语句:SELECT*FROM 工资表 WHERE 基本工资<=3000 AND 基本工资>=1000下列与该语

有下列SQL SELECT语句: SELECT*FROM 工资表 WHERE 基本工资<=3000 AND 基本工资>=1000 下列与该语句等价的是( )。

A.SELECT*FROM 工资表 WHERE 基本工资 BETWEEN 1000 AND 3000

B.SELECT*FROM 工资表 WHERE 基本工资 BETWEEN 3000 AND 1000

C.SELECT*FROM 工资表 WHERE 基本工资 FROM 1000 INTO 3000

D.SELECT*FROM 工资表 WHERE 基本工资 FROM 3000 INTO 1000


正确答案:A
解析:SQL查询语句中特殊运算BETWEEN...AND...的含义为“...和...之间”,意思为“..和..之间”相当于逻辑与运算中的(A>=AND>=B,其中A>B),选项B)中数值放置错误,选项C)和选项D)语句错误。

第8题:

From the point of view of a Chinese bank, ______ is our bank's account in the books of an overseas bank, denominated in foreign currency.

A.a vostro account

B.a nostro account

C.a mirror account

D.a record account


正确答案:B
解析:句意:从一个中国的银行的角度而言,往账是我行在海外行开户并持有的账户,该账户用外币记账。来帐是海外行在我行开户,用人民币记账。denominated in foreign currency用外币计价。vostro account来帐。nostro account往帐。mirror account镜子账户(指银行必须对自己的往账保持记录,目的在于收到对方银行的对账单时可以进行核对)。

第9题:

利用SQL语句,检索仓库中至少有一名职工的仓库信息,正确的命令是

A.SELECT*FROM仓库表WHEREIN;(SELECT仓库号FROM职工表)
B.SELECT*FROM仓库表WHERENOTIN;(SELECT仓库号FROM职工表)
C.SELECT*FROM仓库表WHERE仓库号EXISTS;(SELECT*FROM职工表WHERE仓库号=仓库表.仓库号)
D.SELECT*FROM仓库表WHEREEXISTS;(SELECT*FROM职工表WHERE仓库号=仓库表.仓库号)

答案:D
解析:

第10题:

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

  • A、Select* From Student
  • B、Select Name From Student
  • C、Select Name,Age,IDCard From Student
  • D、Select Name,Age,IDCard,Sex From Student

正确答案:A,D

更多相关问题