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