-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTABLAS MYSQL
More file actions
54 lines (45 loc) · 2.41 KB
/
TABLAS MYSQL
File metadata and controls
54 lines (45 loc) · 2.41 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
mysql> use cursos_online;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+-------------------------+
| Tables_in_cursos_online |
+-------------------------+
| capitulos |
| cursos |
| usuarios |
+-------------------------+
3 rows in set (0.00 sec)
mysql> SHOW COLUMNS FROM capitulos FROM cursos_online;
+-------------+-----------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-----------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| curso_id | int(11) | NO | | NULL | |
| nombre | varchar(30) | NO | | NULL | |
| posicion | int(3) unsigned | NO | | NULL | |
| visibilidad | tinyint(4) | NO | | NULL | |
| contenido | text | NO | | NULL | |
+-------------+-----------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)
mysql> SHOW COLUMNS FROM cursos FROM cursos_online;
+-------------+-----------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-----------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| nombre | varchar(30) | NO | | NULL | |
| posicion | int(3) unsigned | NO | | NULL | |
| visibilidad | tinyint(4) | YES | | NULL | |
+-------------+-----------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
mysql> SHOW COLUMNS FROM usuarios FROM cursos_online;
+----------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| username | varchar(20) | NO | | NULL | |
| password | varchar(40) | NO | | NULL | |
+----------+-------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)
mysql>