Articulos PHP
- 1.6 Unir comparaciones.
- 3.3 Transformando series en variables.
- 2.1 Enunciado switch.
- 1.5 Hacer comparaciones de valores.
- 1.9 Como desplazarse dentro de un arreglo o array.
Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 128
Articulos Jquery
- 1.8 Creando elementos con Jquery
- 1.9 El elemento on.
- 2.4 Usando AJAX con el método .post().
- 2.9 Valor de un campo de texto con attr().
- 1.3 Empezando a utilizar Jquery
Warning: Use of undefined constant jquery - assumed 'jquery' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 137
Articulos CSS
- 1.1 Como incluir estilos en una página web.
- 1 Hojas de estilo CSS.
- 1.2 Estructura de los estilos CSS.
Warning: Use of undefined constant css - assumed 'css' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 146
Articulos Mysql
- 1.3 Valor más alto de una columna.
- 4.1 Eliminando privilegios de una cuenta.
- 3.5 Crear y borrar una base de datos
- 2.1 Seleccionando registros con BETWEEN y WHERE
- 1.4 Obtener el valor más pequeño de una columna.
Warning: Use of undefined constant mysql - assumed 'mysql' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 155
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 199
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 220
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 220
2.0 Seleccionar filas con las expresiones <,>, <= y >= junto con WHERE.
Para seleccionar registros o filas que tengan determinadas columnas cuyos valores sean <,>,<= o >= a otro valor, debemos usar WHERE junto con las expresiones anteriores. Supongamos que tenemos una tabla llamada usuarios y queremos ver todos los nombres de usuarios, es decir, la columna nick, donde la edad sea menor a 18, la consulta queda como sigue:
SELECT Nick FROM usuarios WHERE edad<18
Y si quisieramos los nombres de usuario de quienes la edad sea menor o igual a 18:
SELECT Nick FROM usuarios WHERE edad<=18
que la edad fuera mayor a 18:
SELECT Nick FROM usuarios WHERE edad>18
que la edad sea mayor igual a 18:
SELECT Nick FROM usuarios WHERE edad>=18
que la edad sea mayor igual a 18 y menor igual a 25:
SELECT Nick FROM usuarios WHERE edad>=18 AND edad<=25
y por ultimo que la edad sea mayor a 18 o menor a 25:
SELECT Nick FROM usuarios WHERE edad>18 OR edad<25
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 225
Expresiones <,>,<= y >=.
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 225
2



