Solved

create a query where one field is output and output is hello

Posted on 2013-11-14
3
235 Views
Last Modified: 2013-11-15
want to create a select query create output  'hello'
want one field returned

maybe this works

select 'hello'
0
Comment
Question by:rgb192
3 Comments
 
LVL 1

Accepted Solution

by:
Dephault earned 250 total points
ID: 39649969
Yep you can use this

SELECT 'HELLO' AS Greeting

or as many as you like

SELECT 'Hello' AS GREETING, 'How are you?' as QUESTION
0
 
LVL 19

Assisted Solution

by:bevhost
bevhost earned 250 total points
ID: 39650163
mysql> select 'hello';
+-------+
| hello |
+-------+
| hello |
+-------+
1 row in set (0.00 sec)

mysql>

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 39651041
Thank you for select statements.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now