subquery
でラップします
SELECT c.*
FROM
(
SELECT @row := @row + 1 AS row, pi.*
FROM ci_patient_info pi
) c
where c.row = 2
アップデート1
サブクエリは次のようになります
SELECT @row := @row + 1 AS row, pi.*
FROM ci_patient_info pi, (SELECT @row:=0) x
subquery
でラップします
SELECT c.*
FROM
(
SELECT @row := @row + 1 AS row, pi.*
FROM ci_patient_info pi
) c
where c.row = 2
アップデート1
サブクエリは次のようになります
SELECT @row := @row + 1 AS row, pi.*
FROM ci_patient_info pi, (SELECT @row:=0) x