易截截图软件、单文件、免安装、纯绿色、仅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 order by/group by 优化

explain select im.item_id from property_value p left join item i on p.id = i.value left join
item_message im on i.item_id = im.item_id where ( p.value like '%餐饮%' or p.value like '%拉%' )  and im.class = 1 and im.status = 0 and p.`property_id` in (SELECT id from
`prope ......

一个mysql模糊查询问题

表Info结构
id (int)
year (int)
month (int)
day (day)
name (varchar)
想做个模糊查询,查询条件有可能年月日都为空,或者只填年或者月,
如果hql写成 select * from info where year like '%?%' and month like '%?%' and day like '%?%' and name like '%?%'的话 ......

PHP+Mysql同表联合查询的问题!

使用的mysql是4.07的.似乎不支持in模式.不过应该支持left join吧.

目前在做个新闻列表的页面.按id取后20条记录.然后随机排列出来.

PHP code:

$sql=mysql_query("Select * from (Select id from table1 order by id desc limit 20) order by rand() limit 5") or die("Error");

......

mysql 插入多条数据?

想做'短消息'的系统消息功能(属于群发吧!)

当管理员在后台发送系统消息的时候 所有会员将收到此消息!

问题:

如何向数据发给所有会员?(sql语句如何写?)

应用插入循环么?
PHP code:

查询所有用户 进行循环
while($rs=mysql_fetch_array($result)){
insert into info (内容, ......

MYSQL 真的那么强大而好学??高分探讨。

目前很多服务商都开始使用linux  uninx  ,并使用的数据好多都是MYSQL  ORACLE。 本人正好学 Lamp框架。

不知道MYSQL 如何才能学好呢? 有没有MS-SQL 那种查询分析器 或者管理器什么的? 刚接触MYSQL 有点儿不熟。
望使用MYSQL 者 多多提点儿经典而宝贵的见解 和经验。

小弟,先谢谢啦, ......

mysql语句

sql server 中,添加默认约束 比如  alter  table 表名  add  constraint  默任约束名  default  (getDate()) for  字段 ,在mysql中怎么实现呢??
SQL code:
mysql> create table t_yanyufeng(
-> id int,
-> col timestamp default CURRENT_TIMEST ......
总记录数:1662; 总页数:277; 每页6 条; 首页 上一页 [170] [171] [172] [173] 174 [175] [176] [177] [178] [179]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号