Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
90Activity
0 of .
Results for:
No results containing your search query
P. 1
Resumen MySQL

Resumen MySQL

Ratings:

4.78

(9)
|Views: 9,511 |Likes:
Published by igovan
Comandos y cosas utiles de MYSQL
Comandos y cosas utiles de MYSQL

More info:

Published by: igovan on Jun 13, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/24/2013

pdf

text

original

 
FUNCIONES .....................................................................................................................3AVG.............................................................................................................................3CONCAT.......................................................................................................................3SUBSTR........................................................................................................................3LENGTH.......................................................................................................................3ROUND........................................................................................................................3CURRENT_DATE().........................................................................................................3DAY()...........................................................................................................................3MONTH()......................................................................................................................3 YEAR().........................................................................................................................3CURRENT_TIME().........................................................................................................3HOUR()........................................................................................................................3LOWER()......................................................................................................................3UPPER().......................................................................................................................4IFNULL().......................................................................................................................4MAX/MIN()....................................................................................................................4COUNT()......................................................................................................................4SUM()...........................................................................................................................4IS NULL/ IS NOT NULL..................................................................................................4CLAUSULAS ....................................................................................................................5GROUP BY....................................................................................................................5WHERE........................................................................................................................5HAVING........................................................................................................................5ORDER BY....................................................................................................................5LIMIT............................................................................................................................5LIKE.............................................................................................................................5IN.................................................................................................................................5ANY..............................................................................................................................5ALL..............................................................................................................................6EXISTS.........................................................................................................................6SENTECIAS ......................................................................................................................7ALTER TABLE ...............................................................................................................7CREATE DATABASE......................................................................................................7CREATE TABLE.............................................................................................................7CREATE USER .............................................................................................................8CREATE VIEW...............................................................................................................8
12
 
DELETE .......................................................................................................................8DESCRIBE O DESC.......................................................................................................9DROP DATABASE..........................................................................................................9DROP TABLE................................................................................................................9DROP USER..................................................................................................................9GRANT.........................................................................................................................9INSERT.......................................................................................................................10INSERT...SELECT........................................................................................................10RENAME TABLE..........................................................................................................10SELECT......................................................................................................................10UPDATE......................................................................................................................11USE............................................................................................................................11OTROS ..........................................................................................................................13Guardar y Cargar.......................................................................................................13 Triggers......................................................................................................................13
12
 
FUNCIONES
 AVG
Devuelve el valor medio de expresión:
 AVG
(expr)
CONCAT 
Devuelve la cadena resultante de concatenar los argumentos. Devuelve NULL sialguno de los argumentos es NULL. Puede haber más de 2 argumentos.P.ej:CONCAT(empno,’ cobra ‘, sal); que nos daría una frase hecha diciendo lo quecobra cada tío
SUBSTR
Devuelve la cadena de entre las posiciones del String que tu elijas:
Substr 
(‘String’,1,3) te devolvería ‘Str’ 
LENGTH
Devuelve la cantidad de caracteres de la cadena:
Length(‘String’);
te devolvería 6
ROUND
Devuelve un número redondeado con tantos decimales como le pongas: 
Round(45.926,2);
te devolvería 45.93
CURRENT_DATE()
Devuelve la fecha actual como un valor en el formato 'AAAA-MM-DD' o AAAAMMDD,dependiendo de si la función se usa en un contexto de cadena o numérico:
CURRENT_DATE()
DAY()
Devuelve el día del mes para la fecha dada, en el rango de 1 a 31:
DA
(expr)
MONTH()
Devuelve el mes para la fecha dada, en el rango de 1 a 12:
MONTH
(expr)
YEAR()
Devuelve el año para la fecha dada:
YEAR
(expr)
CURRENT_TIME()
Devuelve la hora actual como un valor en el formato 'HH:MM:SS' o HHMMSS,dependiendo de si la función se usa en un contexto de cadena o numérico:
CURRENT_TIME()
HOUR()
Devuelve la hora del tiempo dado, en el rango de 1 a 24:
HOUR
(expr)
LOWER()
Devuelve la cadena str cono todos los caracteres cambiados a minúsculas de acuerdocon el mapa de caracteres actual:
LOWER
(expr)
12

Activity (90)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Anlieth Madrigal liked this
David Tur liked this
Jesus Garcia liked this
Michell Cabrera liked this
Javier Mata liked this
Aidan Medel liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->