Q:

Can I display a message in MySQL?

I have a question related to SQL.
Can I display a custom message in MySQL phpMyAdmin, something like this:
SELECT * FROM table_name
PRINT 'The message that I want to write!';

I tried to do it with PRINT syntax, because I found something like that, but it doesn't work. Do you have some ideas?

A:

Put the text in the SELECT statement
SELECT *, 'PRINT' FROM foo;

If you're wanting to print a long message, and want a different column name, simply use an alias by using AS.
SELECT *, 'The message i want to print' AS msg FROM foo;

