Solved

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

Posted on 2013-11-14
3
238 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

15 Experts available now in Live!

Get 1:1 Help Now