MySQL Advanced Topics | Part 1

MySQL Advanced Topics | Part 1 MySQL Example with Explanation: CREATE TABLE "customer_data" ( "customer_id" INT(10) NOT NULL AUTO_INCREMENT, "customer_code" VARCHAR(10) NULL DEFAULT NULL , "customer_name" VARCHAR(50) NULL DEFAULT NULL , "introducer_id" INT(10) NULL DEFAULT NULL, "customer_duration" INT(10) NULL DEFAULT NULL, "created_date" DATE NULL DEFAULT NULL, "updated_date" DATETIME NULL DEFAULT NULL, PRIMARY KEY ("customer_id") USING BTREE, INDEX "Index 2" ("customer_id", "customer_code") USING BTREE, INDEX "FK_customer_data_user_info" ("customer_code") USING BTREE, CONSTRAINT "FK_customer_data_user_info" FOREIGN KEY ("customer_code") REFERENCES "user_info" ("user_source") ON UPDATE CASCADE ON DELETE CASCADE )ENGINE=InnoDB,AUTO_INCR...