Jump to content
php.lv forumi

Izvade no MySQL datubāzes bez pirmā ieraksta


ArnisR

Recommended Posts

Var šitā:

SELECT * FROM tabula ORDER BY id DESC LIMIT 1,1000000

 

1000000 vietā jebkāds priekš tava query nereāli liels skaitlis.

 

 

vismaz cilvēkam varēji pateikt kas ir kas :)

 

$from = 1;//No kura ieraksta sākt (0 būs pirmais ieraksts)
$limit = 1;//Cik ierakstus attēlot

SELECT * FROM tabula ORDER BY id DESC LIMIT $from,$limit

Edited by sheps
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...