Wednesday, February 19, 2020

REVERSE()

  1. SELECT REVERSE('Hello World');
  2.  
  3. SELECT REVERSE('meow meow');
  4.  
  5. SELECT REVERSE(author_fname) FROM books;
  6.  
  7. SELECT CONCAT('woof', REVERSE('woof'));
  8.  
  9. SELECT CONCAT(author_fname, REVERSE(author_fname)) FROM books;

No comments:

Post a Comment

Right Joins

-- OUR FIRST RIGHT JOIN (seems the same as a left join?) SELECT * FROM customers RIGHT JOIN orders     ON customers.id = orders.custom...