select db query code example Example 1: select database in sql USE DatabaseName; Example 2: how select from db SELECT columname FROM tablename