bash select vs SQL select
I needed to pull some info from a mysql DB and I ssh to the remote box and do
$ select * from foo where foo=bar;
and I get the following error
bash: syntax error near unexpected token `from'
I break my head for 10 min trying to figure out what the heck was going wrong and then I realise I was still on the bash shell and never used the mysql client to login to the DB. I never realised there was a command line version of the select syscall. I think I should go sleep now.
Aren’t you glad there is no “delete” command/built-in ?
I’ve confused telnet and ftp in my sleep. I mean when I’m still at the keyboard when I should be sleeping.
That user Picture of yours really rocks !
VIM rules AFAIK.
then there’s the join, merge, split, cut, sort and uniq commands that pretty much do SQL in the shell.
Real programmers do
Kallu aint even a fake programmer, let alone real
and hence I boot to windows and open Notepad and File -> Open -> foo.c
and then complain about “how do you start Visual-gcc”?
Visual-gcc is for lamers. gcc.NET 0wnZ. 😀
> Visual-gcc is for lamers
Precisely.
Real programmers do:
$ zcat > a.out
or even:
$ bzcat > a.out
or even:
$ cat /dev/urandom > a.out (Please setup RNG accordingly :P)
Heh. Warm memories from /.