为什么用sql查询了没结果输出,执行成功了,但没有结果输出。 请哪位高手帮忙分析分析,小弟不胜感激!
解决方案 »
- 如何在建表过程中设定主键
- 同样的查询,快的时候瞬间,慢的时候几十秒
- 我的SQL-SERVER中无法打开表,只有在导入或导出数据后才能打开表。而我表中的数据却乱掉了,一条记录复制了好几条记录,不知道是什么原因。
- 求一SQL语句,逗号分隔
- 为什么说“无法编辑该单元”?
- 这个update怎么写?
- erwin中validation rules、数据长度的设置
- 请问各位:软件开发最被看好的方向是什么?
- 重复情况!!
- 各位大大帮看看,我数据库服务器的配置项是否有异常
- 求SQL SERVER师父~~~~~~~~~~
- 调试如下程序.插入新品牌 sql+vb,错误"为过程INSERT_BRAND 指定了过多的参数
http://topic.csdn.net/u/20091130/21/fb718680-98ff-4afb-98d8-cff2f8293ed5.html?24281
from s;
能执行 但没啥结果输出。 表里面有符合的数据啊
一、Kingbase命令参考
1、登陆kingbase主机用户名与口令
首先登陆节点10.16.0.101
telnet 10.16.0.101
login:dbtest
password 为空然后登陆10.16.0.200
telnet 10.16.0.200
login:kingbase
password:空
2、进入kingbase数据库用户名与口令
isql -U SYSTEM kingdb
password 空
3、SQL语句与表的操作(表weather cities 同post)
[kingbase@node200 c]$ isql -U SYSTEM kingdb
Password:
Welcome to isql 2.0, the KingBaseES interactive terminal.Type: \h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quitkingdb=# select * from weather@
CITY | TEMP_LO | TEMP_HI | PRCP | DATE
---------------+---------+---------+------+------------
San Francisco | 46 | 50 | 0.25 | 1994-11-27
San Francisco | 43 | 57 | 0 | 1994-11-29
Hayward | 37 | 54 | | 1994-11-29
(3 rows)kingdb=# select * from cities@
NAME | LOCATION
---------------+-----------
San Francisco | (-194,53)
New York | (-200,90)
Washington | (-70,40)
(3 rows)
4、退出数据库
mydb=# \q
其余命令同Postgresql7.3
利用java(或c)调用postgres7.3或kingbase时出现以下错误提示:
Connection refused. Check that the hostname and port are correct and that the postmaster is accepting the TCP/IP connections
原因及解决方法如下:
在/opt/pgsql73/data/postgresql.conf配置文件中有一项参数:
tcpip_socket = false 改为
tcpip_socket = true 即可。三、出现“驱动调用错误”怎么办 ?
利用java(或c)调用postgres73或kingbase时出现“驱动调用错误”怎么办 ?
错误提示如下:
org.postgresql.Driver或者
com.kingbase.Driver原因及解决方法如下:
1、 在环境变量里的classpath中没有指出postgresql73的jdbc驱动postgresqljdbc.jar
2、 利用ftp传输jdbc驱动时没有设置binary模式.
方法:环境变量里添加
1、 export classpath=$CLASSPATH:/opt/pgsql73/lib/postgresqljdbc.jar
2、 设置ftp的binary模式。四、出现“认证失败错误”怎么办 ?
利用java(或c)调用postgres73或kingbase时出现“认证失败错误” 提示如下
FATAL: Password authentication failed for user "yyb"(postgresql)
或者Au001:Password 认证失败(kingbase)
原因
1、 代码中变量username和password填写错误。或者
2、 系统参数设置错误
解决方法:
1、 重新查询数据库username和password。或者
2、 修改变量local 和host的值由md5改为trust
/opt/pgsql73/data/pg_hba.conf (postgres73)
/usr/local/kingbase/data/syshac.scf (kingbase)
中的
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHODlocal all all trust
host all all 127.0.0.1 255.255.255.255 trust
那或者print '1' 有数据么?