Mysql:i need to have the supplemented of a items in a query.
我有一张画面:这张画面显示每栏6个图像,因此,当我要求图像22时,图像从18个显示到24个。 它应首先得到图像22的抵消,然后从18个到24个。
另外一个例子:一是要求图像编号62(并抵消62),它将选择图像,从60个减少到66个。
是否可能有一个单一问题?
www.un.org/Depts/DGACM/index_spanish.htm 最重要的事情是获得该项目的抵消价值,其数量相当于。
感谢;
EDIT: select * from images order_by updated_at offset(here i need to get the offset of the image id in this query, and the make some calculation... this is what i need, if is possible.. :d)
EDIT2: Now I understand that I need 2 queries:
页: 1
2o:利用第一个问题所抵消的图像......我可以单独制作,第一个问题是问题。