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


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

[OT] Info su BIGINT, INT, etc.

From ^Bart <gabriele1NOSPAM@hotmail.com>
Newsgroups it.comp.www.php
Subject [OT] Info su BIGINT, INT, etc.
Date 2019-10-26 14:28 +0200
Organization Aioe.org NNTP Server
Message-ID <qp1e4n$7sa$1@gioia.aioe.org> (permalink)

Show all headers | View raw


Salve,

<NEWBIE>

volevo una delucidazione sul concetto dei RDBMS tipo MySQL/MariaDB di 
seguito un esempio:

CREATE TABLE users
(
id_user BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(25),
surname VARCHAR(25),
FK_id_city INT(10) UNSIGNED NOT NULL,
INDEX (FK_id_city),
FOREIGN KEY (FK_id_city) REFERENCES cities (id_city)
)
ENGINE=INNODB;

Io mi immagino visivamente un database come un foglio di excel/calc con 
tante colonne quante sono i campi quindi la colonna id_user che è un 
BIGINT può avere molti più valori di quanti ne possa avere la colonna 
FK_id_city!

Ipotizzando di avere come valore massimo di BIGINT 100 e di INT 60 al 
sessantunesimo inserimento avrei un errore o sbaglio?

</NEWBIE>

Saluti!
^Bart

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


Thread

[OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-10-26 14:28 +0200
  Re: [OT] Info su BIGINT, INT, etc. bramante <bramante@yopmail.com> - 2019-10-26 22:19 +0200
    Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-01 14:33 +0100
      Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-01 14:47 +0100
        Re: [OT] Info su BIGINT, INT, etc. bramante <bramante@yopmail.com> - 2019-11-01 17:18 +0100
          Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-02 13:29 +0100
            Re: [OT] Info su BIGINT, INT, etc. Alessandro Pellizzari <shuriken@amiran.it> - 2019-11-04 16:43 +0000
              Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-06 19:52 +0100
                Re: [OT] Info su BIGINT, INT, etc. Alessandro Pellizzari <shuriken@amiran.it> - 2019-11-09 10:38 +0000
  Re: [OT] Info su BIGINT, INT, etc. Leonardo Serni <lserni@gmail.com> - 2019-10-27 11:10 +0100
    Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-01 14:22 +0100
      Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-01 14:50 +0100
        Re: [OT] Info su BIGINT, INT, etc. Leonardo Serni <lserni@gmail.com> - 2019-11-04 00:02 +0100
          Re: [OT] Info su BIGINT, INT, etc. ^Bart <gabriele1NOSPAM@hotmail.com> - 2019-11-06 20:00 +0100
            Re: [OT] Info su BIGINT, INT, etc. Leonardo Serni <lserni@gmail.com> - 2019-11-08 15:56 +0100

csiph-web