- 👋 Hi, I’m @nadsella
- 👀 I’m currently working at @cuvva
- 🌱 I’m currently learning, all things AWS & Go
🦛
i'm not a robot
Pinned Loading
-
example-laravel-docker-env
example-laravel-docker-env PublicJust an example Laravel app built with docker-compose.
PHP
-
Run SQL query and save data into spe...
Run SQL query and save data into specified file 1mysql -A -D <db_name> -h <db_host> -u<user> -p -e "<query>"|tail -n +2 > <file_name>
-
Run SQL using data from specified file
Run SQL using data from specified file 1while read -r id0; do
2for num in {1..9}; do read -r id${num}; done;
3mystring=$(for num in {0..9}; do myvar="id$num"; echo -n "${!myvar} "; done|tr ' ' ','|sed -e 's/[,]*$//');
4mysql -A -D <database> -h<host> -u<user> -p<password> -e "UPDATE something in something where id IN ($mystring);";
5done < <filename>
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.