Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22550

Re: Gestire città utente da due tabelle diverse

From Alessandro Pellizzari <shuriken@amiran.it>
Newsgroups it.comp.www.php
Subject Re: Gestire città utente da due tabelle diverse
Date 2019-02-11 10:43 +0000
Message-ID <gcd1vlFgqjeU1@mid.individual.net> (permalink)
References <q3kvs7$1jmq$1@gioia.aioe.org>

Show all headers | View raw


On 08/02/2019 22:29, ^Bart wrote:
> cities_it
> cities_uk
> users

> Avevo pensato ad una terza generica tabella nominata cities ma... in 
> questa dovrei mettere solo due fk che collegano cities_uk e cities_it ed 
> andare in cascata con vari inner join...
> 
> Soluzione troppo complicata? C'è di meglio?

Una sola tabella cities:
id
country
name

Un bell'indice su country e sei a posto, nel caso ti serva trovare le 
città per Paese.

Bye.

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Gestire città utente da due tabelle diverse ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-02-08 23:29 +0100
  Re: Gestire città utente da due tabelle diverse Alessandro Pellizzari <shuriken@amiran.it> - 2019-02-11 10:43 +0000
  Re: Gestire città utente da due tabelle diverse RedWiz <redwiz@inwind.it> - 2019-02-11 14:05 +0000

csiph-web