Search
 
SCRIPT & CODE EXAMPLE
 

SQL

create table with index mysql

CREATE TABLE emp_details (
id INT,
full_name VARCHAR(50),
email VARCHAR(50),
mobile INT NOT NULL,
PRIMARY KEY (id),
INDEX (id, email)
);
Comment

mysql create table index

## Adding an Index to Existing Table
CREATE INDEX indexName ON tableName (ID, LName, FName, LOC);

## Adding an Index to Existing Table with Primary Key
CREATE UNIQUE INDEX indexName ON tableName (ID, LName, FName, LOC);
Comment

PREVIOUS NEXT
Code Example
Sql :: between vs in sql 
Sql :: mysql get max value and id 
Sql :: add week ending date sql server 
Sql :: sql server version check 
Sql :: Add new column T-SQL 
Sql :: postgresql remove duplicate rows 2 columns 
Sql :: postgre query date 
Sql :: oracle show errors 
Sql :: mysql command 
Sql :: mysql not starting in xampp 
Sql :: postgres delete by id 
Sql :: client does not support authentication protocol requested by server sqlyog 
Sql :: how to make case insensitive in sql 
Sql :: duplicate record mysql 
Sql :: oracle sql unique 
Sql :: how to select all fieldsin a soql query 
Sql :: sql remove duplicate 
Sql :: See Foreign Key 
Sql :: mysql 5.6 hierarchical recursive query 
Sql :: delete from select postgresql 
Sql :: display first three characters sql 
Sql :: count weekend days between two dates sql 
Sql :: how to find table lock and row lock in mysql 
Sql :: postgresql delete cascade 
Sql :: create-table 
Sql :: carbon mysql d m y to y-m-d 
Sql :: sql get actual fiscal year 
Sql :: mysql grouping functions 
Sql :: tsql find procedure with name 
Sql :: prisma transaction 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =