易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 : mysql

mysql插入图片问题

插入图片时会报了个异常如下:
org.springframework.dao.DataAccessResourceFailureException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '8 l??“???_?o????”? @,????0N\'?ué…… è±’ ......

mysql in 排序

select * from 表名 where 字段 in(×1,×2,×3,×4)
请问怎样才能让查询出来的内容按×1,×2,×3,×4的顺序依次显示出来呢?

比如select * from 表名 where 字段(id) in(1,3,5,4)
怎样才能查询出来的内容按1,3,5,4依次显示呢?
SQL code:
ORDER BY CHA ......

求一条MYSQL语句

有三张表,
课程: course(cid 主键自增,cname)
问题:topic(tid 主键自增,cid,tname)
回答:revert(rid 主键自增,tid,rname)
求sql:每个课程下的问题数,每个课程下的回答数
1. select cid, count(tid) from topic group by cid

用一条语句

顶一个

进来看下,学习!

select A.cid, count(A.tid) ......

MySql自动增长字段

有的下面一个sql语句
SQL code:

create table article
(
id int primary key auto_increment,
pid int,
rootid int,
title varchar(255),
cont text,
pdate datetime,
isleaf int #1-not leaf 0-leaf
)
auto_increment=0;
insert into article values (null, 0, 1, '蚂蚁大战大象', '蚂蚁大战大象', now ......

mysql 触发器问题

有2个表 T1(id  title  number)  T2(id tid title)  t2表中tid外键关联t1表id

现在我想在t2表上建立个触发器,在执行 插入 和删除 操作后, 更新t1表的对应行的number (number为t2的总数 ti。id=t2.tid,相当于一个帖子和这个帖子的回复那种关系)


请问这个触发器要什么写啊? ......

mysql数据导入问题

    比如把一个.txt文件的内容导入到mysql数据库的里面的txst数据库里面,,页面编码的和数据库里面都是采用utf-8进行编码(项目必须采用utf-8编码),但导入到数据库里面中文是乱码,但导入出来可以显示中文,,请问怎么解决啊 ,,
用gb2312和上面的情况也是一样(但又不能用GB2312)


  &nb ......
总记录数:1662; 总页数:277; 每页6 条; 首页 上一页 [115] [116] [117] [118] 119 [120] [121] [122] [123] [124]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号