Drupal 7で単純なクエリを使用してデータベース操作を完了しましたが、Drupal 7 の theme_table を使用していくつかのページネーション機能が必要であり、 Drupal 7 db_selectを使用する必要がありますが、そうすることができません。
できるだけ早く助けてください。以下は、db_selectで変換したいmysqlクエリです:-
SELECT r.ROName, CONCAT(CONCAT(CONCAT(r.Address1, ' - ' , r.Pincode),' - ',d.Distname),' - ',s.StateName) as Address1,r.Phone1, r.Phone2, r.Fax, r.Phone3, r.Pincode, r.DistID,d.Distname, d.DistID, s.StateID, r.StateID, s.StateName
FROM ROMaster r
JOIN DistrictMaster d ON r.DistID = d.DistID JOIN StateMaster s ON r.StateID = s.StateID
WHERE SBUID =1
ORDER BY r.ROName