Articulos PHP
- 1.3 Almacenar texto en variables
- 3.1 Conexión MySQL con enunciado die.
- 1.7 Enunciado exit o die.
- 2.9 Fecha y Hora en PHP.
- 2.4 Ciclo WHILE.
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
- 2.2 Introduciendo texto usando el método .text().
- 2.6 El efecto fadeIn y fadeOut.
- 2.8 Valor de una lista desplegable con attr().
- 2 Añadiendo elementos a la página con append().
- 1.6 El método preventDefault.
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 Hojas de estilo CSS.
- 1.2 Estructura de los estilos CSS.
- 1.1 Como incluir estilos en una página web.
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 MySQL.
- 1.3 Valor más alto de una columna.
- 1.6 Ordernar valores con ORDER BY.
- 2.7 Conjunción interna de tablas.
- 2.9 Insertando datos con INSERT.
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.1 Seleccionando filas o registros con BETWEEN y WHERE.
Si necesitamos seleccionar filas o registros los cuales tengan un valor que este entre un rango de valores, podemos usar BETWEEN junto con WHERE. Para entender un poco mejor, supongamos que tenemos una tabla llamada usuarios y queremos que se muestren los nombres de usuario o nick cuya edad este comprendida entre 18 y 25 años. La consulta serÃa como sigue:
SELECT nick FROM usuarios WHERE edad BETWEEN 18 AND 25
Como se puede observar antes de BETWEEN esta el nombre de la columna a la cual se le aplica el rango de valores, en este caso edad. Ahora si quisiéramos usar dos o mas BETWEEN podrÃamos usar ya sea un AND o un OR como se muestra a continuación:
SELECT Nick FROM usuarios WHERE edad BETWEEN 18 AND 25 AND estatura BETWEEN 150 AND 200
Como se puede observar se ha agregado estatura BETWEEN 150 AND 200 lo que quiere decir que también los nombres de usuario deben tener un rango de estatura entre los valores anteriores.
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
Seleccionando registros con BETWEEN y WHERE
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.1



