mysql get last row
snippet in sql

mysql get last row

user8431

SELECT fields FROM table ORDER BY id DESC LIMIT 1;

how to fetch data from database without last column

user5679

SELECT lastName,firstName FROM Customer
       WHERE lastName LIKE "B%"
         AND city = "Indianapolis"
         AND (phone LIKE "%8%" OR fax LIKE "%8%")