Posted by: Vijay Dev on: April 14, 2009
I got a question recently from a friend about doing case sensitive searches in SQL and I did not know the answer !! I knew that ORM’s like Django have operators such as ILIKE to do this, but I do not know how to do this in raw SQL. So I started looking for ways [...]
Posted by: Vijay Dev on: October 25, 2008
I use MySQL and MS SQL at work and have never used PostgreSQL. So it was a nice learning about the evaluation of the update queries in MySQL and PostgreSQL today..
Seems that UPDATE table SET X=Y, Y=X is enough in PostgreSQL to swap two columns !! It just picks up the old values of [...]