Para editar un comando: Window → Preferences → General → Keys
Ctrl+D | elimina la línea actual (en la que se encuentra el cursor) |
Ctrl+Shift+F | formatear código (tabulaciones, saltos de línea,…) |
CREATE TABLE `paises` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) DEFAULT NULL, | |
`nombre` varchar(80) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
INSERT INTO `paises` VALUES(1, 'AF', 'Afganistán'); | |
INSERT INTO `paises` VALUES(2, 'AX', 'Islas Gland'); | |
INSERT INTO `paises` VALUES(3, 'AL', 'Albania'); |
############################################################################################################ | |
################## ############################# | |
################## ############################# | |
This Gist collection contains all localstack related examples | |
################## ############################# | |
################## ############################# | |
############################################################################################################ |
version: "3.3" | |
#Define services | |
services: | |
#MySql Database for application | |
mysql-db: | |
image: mysql | |
restart: always | |
container_name: mysql-db |
public findInvalidControls() { | |
const invalid = []; | |
const controls = this.AddCustomerForm.controls; | |
for (const name in controls) { | |
if (controls[name].invalid) { | |
invalid.push(name); | |
} | |
} | |
return invalid; | |
} |
FROM php:7.1.2-apache | |
RUN docker-php-ext-install mysqli |
Crear ambiente de desarrollo con apache y php y mysql sobre docker | |
Como les indicaba al principio, el gran problema es empezar, pero si tenemos docker instalado como les mostramos (en mi caso utilizo ubuntu 20.04) el resto es muy sencillo. | |
En primer lugar crearemos la carpeta donde vamos a trabajar y dentro de ella pondremos: | |
nano docker-compose.yml | |
dentro de este documento: | |
version: '3.7' | |
##Gracias por ser parte de https://luiszambrana.com.ar |
# see https://github.com/cmaessen/docker-php-sendmail for more information | |
FROM php:5-fpm | |
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
RUN docker-php-ext-install mysql mysqli sysvsem | |
RUN pecl install xdebug-2.5.5 \ | |
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Á','A'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'É','E'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Í','I'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Ó','O'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Ú','U'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'Ñ','N'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'ã','a'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'ä','a'); | |
UPDATE TABLA SET CAMPO = REPLACE(CAMPO,'å','a'); |