| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 7124 人关注过本帖
标题:向高手请教关于数据库连接的问题
只看楼主 加入收藏
shen8603527
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2004-6-2
收藏
得分:0 
belin2000我能知道你的qq号吗?

/home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-06-02 23:27
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 

你的数据库的tel是什么型的??文本还是数字型的??


59ita点com(我就爱TA)
2004-06-02 23:28
shen8603527
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2004-6-2
收藏
得分:0 
是文本型的啊

/home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-06-02 23:31
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 
conn.execute("insert into address (name,tel) values("骆莉莉","8809223")")
这样看看可以吗?

59ita点com(我就爱TA)
2004-06-02 23:33
shen8603527
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2004-6-2
收藏
得分:0 
不行啊,好像这个语句中VALUES()里的内容不能出现“”不然就显示语句有无效字符

/home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-06-02 23:40
shen8603527
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2004-6-2
收藏
得分:0 
QQ号QQ号QQ号

/home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-06-02 23:41
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 
发了给你!!!

59ita点com(我就爱TA)
2004-06-02 23:58
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 

conn.execute("insert into address (name,tel) values("骆莉莉","8809223")") 没有错的,我试了,你是不是两个都是文本型的???


59ita点com(我就爱TA)
2004-06-03 00:00
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 
conn.execute 空格("insert into address (name,tel) values("骆莉莉","8809223")")

59ita点com(我就爱TA)
2004-06-03 00:02
shen8603527
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2004-6-2
收藏
得分:0 
我再试试

/home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///home/bbs3/wdb/upload/forum2_f_269_1068812954.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-06-03 00:08
快速回复:向高手请教关于数据库连接的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016644 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved