Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql to migration codeigniter online

$tableName = "user_type";
$sql = "";
$sql = "CREATE TABLE `$tableName` (
        `id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , 
        `name` CHAR(120) NOT NULL
    ) ENGINE = InnoDB;";
echo $this->db->query($sql);
$sql = "  INSERT INTO `$tableName` (`id`, `name`) VALUES
        (1, 'user'), (2, 'provider'), (3, 'admin')";

echo $this->db->query($sql);
Comment

PREVIOUS NEXT
Code Example
Sql :: sql server import json 
Sql :: pgsql sum switch case 
Sql :: mysql query problems and solutions 
Sql :: Every Derived yable must have its own alias 
Sql :: unable to open database database.db file is encrypted or is not a database 
Sql :: SQLSTATE[HY000] [1298] Unknown or incorrect time zone 
Sql :: Resulting Query 
Sql :: play framework connection via windows sql server 
Sql :: $nbreLivres= mysqli_num_rows($result); $all = mysqli_fetch_all($result,MYSQLI_ASSOC); mysqli_free_result($result) mysqli_close($conn); 
Sql :: mysql where sum 0 
Sql :: get item by composite primary key mysql 
Sql :: inserting values with beekeeper get error null value in column createdAt violates not-null constraint 
Sql :: How to take sum of column with same id in "JPQL?" 
Sql :: mysql Digital Ocean connection problems 
Sql :: sql set devault value with existing column 
Sql :: psql create usr 
Sql :: copy table from postgresql to mysql 
Sql :: mysql portable 
Sql :: mysql extract number from string 
Sql :: get last query in codeigniter 4 
Sql :: connecting to my cloud sql server with c# 
Sql :: sakila database erd postgresql 
Sql :: mysql-split-and-join-the-values 
Sql :: java mysql swing example 
Sql :: which lock mode is not available in sql 
Sql :: opensuse stop MySQL 
Sql :: updating mysql 
Sql :: "Edad en Oracle" 
Sql :: mysqldump error --no-beep 
Sql :: optimize sql query 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =