查询错误 db2 ? sql1024N
DB2错误分为sqlcode 和sqlstate 1024N或1052N为sqlcode
C:\Program Files\IBM\SQLLIB\BIN>db2 ? sql1024n
SQL1024N 不存在数据库连接。
说明:
没有与数据库连接。除非先前执行了 SQL CONNECT,否则不能处理其他 SQL 语句
。
无法处理该命令。
用户响应:
如果与数据库断开连接时发生错误,那么继续处理。如果在另一条 SQL 语句中发
生错误,那么发出 SQL CONNECT 语句,并重新提交该命令或语句。
sqlcode:-1024
sqlstate:08003
db2 ? SQL1024SQL1024N A database connection does not exist.
Explanation:
There is no connection to a database. Other SQL statements cannot be
processed unless an SQL CONNECT was previously executed.
The command cannot be processed.
User response:
If the error occurred when disconnecting from the database, continue
processing. If the error occurred on another SQL statement, issue an SQL
CONNECT statement and resubmit the command or statement.
sqlcode: -1024
sqlstate: 08003
说得很清楚了,没有数据库连接,在查询或者进行数据库 *** 作前,必须先连接到需要 *** 作的数据库
db2 connect to sample
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)