联系官方销售客服

1835022288

028-61286886

迅睿框架 版主:迅睿框架研发组
sql标签中的sql语句,不能使用union all吗
类型:迅睿CMS 更新时间:2023-10-18 14:17:29 {$t.title}

{sql}标签中的sql语句,不能使用union all吗?

我用如下模式使用了{sql}标签,在不适应union all 的时候,两条语句都没问题,用union all后报错了。


但是如果使用union all的时候,如果不使用page=1后面这些参数也没问题

<?php $query=urlencode('select * from @#1_news');?>
{sql sql='$query' page=1 pagesize=10 urlrule=index.php?page=[page]}
{$t.title}

{/sql}
{$pages}



回帖
  • 小波工作室
    #1楼    小波工作室
    2023-10-18 14:00:02
    Chrome 0
    (**union all**) as xinbiao
    满意答案
  • 木木木木
    #2楼    木木木木
    2023-10-18 14:17:29
    Chrome 0
    @小波工作室:NB,问题完美解决,