数据库复杂的查询语句

select CONCAT(rowno,'-',%s) from (SELECT @rowno:=@rowno+1 as rowno, ifnull(t.%s,'null') as %s from "+data.getDsUser()+".%s t,(select @rowno:=0) r) a where %s not regexp '%s';");

这句语句查什么的 from where之间的是什么意思
GBase数据库支持这个语句吗

@rowno:=@rowno+1 as rowno 就是取数据库里面的编号+1 ,作为序好 , ifnull(t.%s,'null') 如果为空就显示 null,不为空就显示这个字段的值

这个条sql 是一个函数型的查询语句

from 和 where中间就是查询出 rowno he t.%s的这个两个字段的 从 data.getDsUser() 这个表里面查询数据,作为一张临时的表查询,你这个应该是在其他的代码里面的sql