This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO clientes_peticiones ( | |
id_cliente,fecha,peticiones | |
) VALUES ( | |
1,'2011-11-02',1 | |
) ON DUPLICATE KEY UPDATE peticiones = peticiones+1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# La siguiente consulta añade un campo numerado a una consulta: | |
set @num=0; | |
select id, @num:=@num+1 AS contando FROM tabla; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php_value date.timezone UTC |
NewerOlder