Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Numerowanie rekordów, przy pobieraniu z bazy
Kirtan Loor
post
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 22.10.2004
Skąd: Płock

Ostrzeżenie: (0%)
-----


Witam.
Czy istnieje mozliwosc takiego napisania sql by przy okazji numerowal on rekordy pobierane z bazy?

Mam zapytanie:
  1. SELECT et.tid, e.active, TRIM(CONCAT(et.titlename,' ',et.title)) AS name
  2. FROM ( encyklopedia_text AS et
  3. INNER JOIN encyklopedia AS e ON e.eid=et.eid )
  4. WHERE TRIM(CONCAT(et.titlename,' ',et.title)) LIKE 'Żelazna Pięść' ORDER BY tid ASC


I chcialbym by oprocz id z bazy zostały kolejno ponumerowane. Np:
  1. 1 | 129 | 1 | Żelażna Pięść
  2. 2 | 294 | 1 | Żelazna Pięść
  3. ...


--------------------
A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes
Portants surcots et justes cottes,A cuidereaux d'amour transis,
Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 04:46