-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsql_user_table.sql
29 lines (21 loc) · 1.63 KB
/
sql_user_table.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
show databases;
create database clv;
use clv;
CREATE TABLE users (
user_id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(50) DEFAULT NULL,
username VARCHAR(50) DEFAULT NULL,
email VARCHAR(50) DEFAULT NULL UNIQUE,
password VARCHAR(100) DEFAULT NULL,
phone BIGINT DEFAULT NULL UNIQUE,
img VARCHAR(1000) DEFAULT NULL,
PRIMARY KEY (user_id)
);
INSERT INTO users (name, username, email, password, phone, img)
VALUES
('John Doe', 'johndoe1', 'john1@example.com', 'password123', 1234567890, 'https://static.vecteezy.com/system/resources/previews/001/840/612/large_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg'),
('Jane Smith', 'janesmith1', 'jane1@example.com', 'password456', 2345678901, 'https://static.vecteezy.com/system/resources/previews/001/840/612/large_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg'),
('Alice Johnson', 'alicejohnson1', 'alice1@example.com', 'password789', 3456789012, 'https://static.vecteezy.com/system/resources/previews/001/840/612/large_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg'),
('Bob Brown', 'bobbrown1', 'bob1@example.com', 'password101', 4567890123, 'https://static.vecteezy.com/system/resources/previews/001/840/612/large_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg'),
('Charlie Davis', 'charliedavis1', 'charlie1@example.com', 'password202', 5678901234, 'https://static.vecteezy.com/system/resources/previews/001/840/612/large_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg');
select * from users;