SQL

Save MySQL Output to a Text File

I have just found out a nifty little trick regarding MySQL output the other day. I just had to put this up as a reminder to myself, and also to share with the viewers. Let say, you want to have the output of your SELECT statement created to a text file. The MySQL database server …

SQL Select Statement with Comma-Separated List Condition

I have one problem the other day; Why does my “SELECT * FROM tbl WHERE col IN (@list)” does not work? The col datatype is int, while the @list parameter is a comma-separated varchar. The Problem In a stored procedure, I’m composing a SELECT statement with a WHERE clause in which the column condition datatype is integer, …

  • recently written