0% found this document useful (0 votes)
8 views3 pages

Create Database DB AdministrativoM

The document creates a MySQL database called dbAdministrativoM, then creates a table within that database called AdministrativoM with 16 columns to store administrative staff data. It shows the tables, describes the AdministrativoM table, and selects all data from AdministrativoM.

Uploaded by

kleiber_2007
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Create Database DB AdministrativoM

The document creates a MySQL database called dbAdministrativoM, then creates a table within that database called AdministrativoM with 16 columns to store administrative staff data. It shows the tables, describes the AdministrativoM table, and selects all data from AdministrativoM.

Uploaded by

kleiber_2007
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

create database dbAdministrativoM;

show database;
use dbAdministrativoM;
create table AdministrativoM
(
IDADMIN int,
NOMBADMI double,
APATADMI double,
AMATADMIN double,
SEXOADMIN double,
DOCUADMI double,
DNIADMI double,
DIREADMIN double,
TELFADMI double,
CELUADMI double,
DEPAADMI double,
PROVADMI double,
DISTADMI double,
OBSVADMIN double,
AREAADMI double,
CARGADMI double
)
;

show tables;

desc AdministrativoM;

select * from AdministrativoM;

alter table alumno add constraint pk_alumno primary key alumno(alumno_id)

ARGADMI String;
create database dbAdministrativoM;
show database;
use dbAdministrativoM;
create table AdministrativoM
(
IDDOCENTE Int,
NOMBDOC String,
APATDOC String,
AMATDOC String,
SEXODOC String,
DOCUDOC String,
DNIDOC String,
DIREDOC String,
TELFDOC String,
CELUDOC String,
DEPADOC String,
PROVDOC String,
DISTDOC String,
FNACDOC String,
OBSVDOC String,
CATEDOC String,
SUELBASDOC double,
BONIDOC double,
MOVDOC double,
BRUTODOC double,
AFPDOC double,
SEGUDOC double,
DESCDOC double,
NETODOC double
)
;
show tables;
desc AdministrativoM;
select * from AdministrativoM;
"jdbc:mysql://localhost:3306/iinesuf";
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(url, "root", "123")

You might also like