Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mariadb add foreign key

alter table group_a 
add constraint fk_b_in_a
foreign key(`b_id`) 
    references group_b(`b_id`)
    on delete set null
    on update set null;
Comment

create table in mysql mariadb primary key foreign key

CREATE TABLE IF NOT EXISTS `scores` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  UserId int(11) NOT NULL,
  `NICKNAME` varchar(50) NOT NULL,
  `HIGHSCORE` int(11) NOT NULL,
  PRIMARY KEY (`ID`),
  FOREIGN KEY (UserId) REFERENCES USER(Id)
);
Comment

alter table add foreign key mariadb example

alter table caixa add foreign key (idcaixafluxo) references caixafluxo (idcaixafluxo);
Comment

PREVIOUS NEXT
Code Example
Sql :: sqlalchemy join on column 
Sql :: how to find database collation in postgres 
Sql :: get sql instance name 
Sql :: mysql where value is null 
Sql :: postgresql export database 
Sql :: sql server locks 
Sql :: multiple count in sql 
Sql :: select nextval from sequence oracle 
Sql :: ms sql create user 
Sql :: phpmyadmin password root 
Sql :: recently updated stored procedure in sql server 
Sql :: if else in plsql 
Sql :: mysql query single row 
Sql :: mysqldump ignore table 
Sql :: oracle sql pad left zeros 
Sql :: select last 30 days sql 
Sql :: how to check table exists or not in postgresql 
Sql :: sql concat 
Sql :: joomla execute raw sql 
Sql :: plpgsql create function 
Sql :: restroe pg_dump example 
Sql :: rename table sql server 
Sql :: sort by sql 
Sql :: Check database restore status sql script 
Sql :: output table plsql 
Sql :: Parsing XML IN SQL Server 
Sql :: launch sql script from docker in mysql 
Sql :: change user mysql password 
Sql :: create table in sql server 
Sql :: Converting mysql tables to charset utf8mb4 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =