select pid,a.num1,b.num2 from (第一句 as a),(第二句 as b)
where a.pid=b.pid
这样?
这样行不通忘了补充下,是在MYSQL里执行