Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ informatica triennale > array associativi in postgres
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
MarcoVigna17
.precettore.

User info:
Registered: Dec 2007
Posts: 92 (0.01 al dì)
Location: Robecco sul Naviglio
Corso: Informatica
Anno: 1
Time Online: 20:21:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
array associativi in postgres

ciao a tutti, volevo sapere come si realizzano (sempre che sia possibile) degli array associativi in postgres.

quello che mi serve è una cosa del genere:
array['codice'] -> quantità
perciò con codice=char e quantità=integer.

grazie mille!

26-05-2010 17:06
Click Here to See the Profile for MarcoVigna17 Click here to Send MarcoVigna17 a Private Message Visit MarcoVigna17's homepage! Find more posts by MarcoVigna17 Add MarcoVigna17 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
*°§_-???
-.-''

User info:
Registered: Oct 2005
Posts: 383 (0.05 al dì)
Location: Milan (again)
Corso: Comunicazione Digitale
Anno: (3+x) | x>0
Time Online: 10 Days, 4:34:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:? array associativo in postgres?
non so se postgres supporti una struttura simile (mi sembra sia dedicato solo agli aspetti propri del db e supporti solo codice sql e simil)...
una struttura come quella che ti serve è molto semplice da fare in php (e tramite questa richiami i dati nel db su postgres)

...mi sembra la via più semplice ed intuitiva, almeno...

__________________
:pccrash::pccrash:

26-05-2010 17:42
Click Here to See the Profile for *°§_-??? Click here to Send *°§_-??? a Private Message Find more posts by *°§_-??? Add *°§_-??? to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
MarcoVigna17
.precettore.

User info:
Registered: Dec 2007
Posts: 92 (0.01 al dì)
Location: Robecco sul Naviglio
Corso: Informatica
Anno: 1
Time Online: 20:21:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se solo montanelli non richiedesse le funzioni fatte in postgres, è quello il problema...

cmq se ho ben capito dal manuale online di postgres devo creare un tipo con i due campi che mi servono e poi creare un array di quel tipo, solo che devo farci su un bel po' di prove perchè non mi è proprio chiarissimo tutto...

26-05-2010 18:11
Click Here to See the Profile for MarcoVigna17 Click here to Send MarcoVigna17 a Private Message Visit MarcoVigna17's homepage! Find more posts by MarcoVigna17 Add MarcoVigna17 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:18.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.034 seconds (66.53% PHP - 33.47% MySQL) con 28 query.