Category: MySQL

On financial modeling issues.

MySQL command via shell script (using variables in SQL)

Running mysql commands on the shell is pretty simple. However, things can get tricky if you need to enclose variables within those aprostophes in your script. Spend some time trying to figure this out. The short sample code below shows how it can be done. Note the cats on “echo $1“. Hope this helps you as well.

Read more →