Solved

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

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

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

770 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