掲示板
How To execute this Query In lIferay?
8年前 に Bharamani P Tashildar によって更新されました。
How To execute this Query In lIferay?
Junior Member 投稿: 48 参加年月日: 14/08/27 最新の投稿
How to execute below query in liferay.........
SELECT qualityId FROM `quality_quality`
ORDER BY qualityId DESC
LIMIT 1;
I am trying to get last Primary key from table.........
If any other APIs available please tell me
Thanks
Bharamani
SELECT qualityId FROM `quality_quality`
ORDER BY qualityId DESC
LIMIT 1;
I am trying to get last Primary key from table.........
If any other APIs available please tell me
Thanks
Bharamani
8年前 に Samuel Kong によって更新されました。
RE: How To execute this Query In lIferay?
Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
8年前 に Harsh Joshi によって更新されました。
RE: How To execute this Query In lIferay?
Junior Member 投稿: 27 参加年月日: 15/01/28 最新の投稿
liferay provides Dynamic Queries
you can do from this
you can do from this
8年前 に David H Nebinger によって更新されました。
RE: How To execute this Query In lIferay?
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿Harsh Joshi:
liferay provides Dynamic Queries
you can do from this
That's helpful.
You could have at least pointed out to the guy that his SQL skills are less than adequate. His query should be "select max(quantityId) from quantity_quantity" yet he's sorting, using a row limit, ...
Total crap.