· 7 years ago · Feb 05, 2019, 08:58 AM
1create database web;
2use web;
3create table if not exists contenido (
4 cod integer not null primary key auto_increment,
5 titulo text not null, # varchar,char,text,longtext
6 articulo longtext not null,
7 imagen varchar(200),
8 resumen text
9
10
11);
12
13describe contenido;
14
15alter table contenido add fecha timestamp default current_timestamp after titulo;
16
17select * from contenido;