Em mún select sql limit số dòng trong điều kiện cột đó ko quá 4 ID khác nhau, nhung ID có quyền lặp lại nhiều lần, giả sử cột đo là 1 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 5, thì em chỉ mun chọn từ 1 đên 4 co 11 dòng, ai giúp em vơi, cam ơn ad
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Em có thể add giúp anh schema và dữ liệu ví dụ để anh hiểu hơn vấn đề của em được không?
Ví dụ schema:
Dữ liệu ví dụ:
anh nghĩ em đang nói đến bài toán phân trang, vậy giả sử bảng của em sẽ kiểu:
như vậy em có thể dùng câu lệnh này nhé: