评论列表
沧海
2016-01-28 21:45:05
回复
lt: llittle than, 小于
llittle多了一个 l ?
🍟
王春生 回复 沧海
2016-02-01 10:42:58
回复
谢谢,已经更正。
阿玉
2016-01-21 18:36:11
回复
请问需要用到子查询,应该如何用DAO组装?即from的不是表名,而是另一个查询,如:
$this->dao->select('*')
->from('select * from table where type = 1 order by id desc')
->where('account')
->eq('wwccss')
->fetch();
谢谢!
🍟
王春生 回复 阿玉
2016-01-22 08:09:35
回复
我们一般是在php里面查询一个列表出来,然后在用in语句。
我们的程序不用子查询。
粟江
2016-01-07 13:19:48
回复
框架是不是不支持SUM等函数的查询?
粟江 回复 粟江
2016-01-07 13:50:34
回复
多表联接查询是不是不支持?
su
2016-01-08 11:47:52
回复
fetchGroup分组怎么实现的?直接带参数怎么不行?
小冯
2015-12-18 15:13:28
回复
导入带数据的数据库后,一直提示此页面不能正确地重定向,
🍟
王春生 回复 小冯
2015-12-22 11:06:31
回复
看下日志,跟踪下页面是如何重定向的。
huba
2015-10-29 12:07:59
回复
禅道链接多个数据库是这样的?$this->dao->dbh($slaveDBH)和$this->dao->dbh($dbh)。。为什么报错呢
lin
2015-10-23 10:11:03
回复
禅道怎么连接多个数据库?
🍟
王春生 回复 lin
2015-10-26 19:55:09
回复
可以设置主从数据库。config.php里面有参数。
yip
2015-10-20 17:58:24
回复
你好,我想请问下,类似
select t1.*,t2.count
from table1 t1,(select count(*) as count from table2 group by a) t2
这种查询语句中的 t2 该怎么表示
🍟
王春生 回复 yip
2015-10-22 09:11:25
回复
我们一般是用 as做个别名。不是很明白你的意思。
wufeishow
2015-04-10 16:26:26
回复
fetchAll()不能得到二维数组格式的数据 有什么办法吗?
Yuri
2015-03-11 11:15:38
回复
page方法在处理order和limit时使用strripos是不区分大小写的,当sql中有字段带有关键字(例如orderId)会产生截取错误,改为strrpos后正常
上一页
3
4
5
6
7
8
9
10
11
9/11
下一页
登录
llittle多了一个 l ?
$this->dao->select('*')
->from('select * from table where type = 1 order by id desc')
->where('account')
->eq('wwccss')
->fetch();
谢谢!
select t1.*,t2.count
from table1 t1,(select count(*) as count from table2 group by a) t2
这种查询语句中的 t2 该怎么表示