发布网友 发布时间:2022-04-10 05:16
共1个回答
热心网友 时间:2022-04-10 06:45
SELECT pid, name, note, price, amount, count, photo, ROWNUM rn追问不行啊,出现Unknown column 'ROWNUM' in 'field list'了,我的字段表里面没有rownum,是直接删掉"ROWNUM rn"么?
追答SELECT pid, name, note, price, amount, count, photo
FROM proct
WHERE (name LIKE ? OR note LIKE ? OR price LIKE ? OR amount LIKE ?)
ORDER BY pid limit ?,?