Re: [Postgresql-it] Finestra di valori

  • From: Tiziano Tissino <t.tissino@xxxxxxxxxxxxxxxx>
  • To: postgresql-it@xxxxxxxxxxxxxxxxx
  • Date: Fri, 11 Feb 2005 11:47:49 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

puoi usare BETWEEN:

select * from table where campo_ricerca between 3 and 5;

Enrico ha scritto:
| Salve vorrei fare una query del tipo
|
| select * from table where campo_ricerca = 'valore'
|
| a questo punto vorrei ad esempio dare un limit ad es 100 con il valore
| 'valore' centrato nella posizione 50.
|
| Ad esempio
|
| Tabella
| campo_ricerca
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
|
| select * from table where campo_ricerca = '4'
|
| e la finestra sia grande 3 allora vorrei in uscita:
| 3
| 4
| 5
|
| Si può fare una cosa del genere?
|
| Ciao Enrico
|
|
| _______________________________________________
| Postgresql-it mailing list
| Postgresql-it@xxxxxxxxxxxxxxxxx
http://www.linuxtime.it/mailman/listinfo/postgresql-it

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCDI1VclflioLL8j8RAr+TAJ908on/52USHPt8JBt83ARIvTOCtwCgluTG
Qge0thKzOacAO2AjvkQ2l6U=
=W5P8
-----END PGP SIGNATURE-----

Other related posts: