How to select a column name with a space in MySQL
Generally the first step is to not do that in the first place, but if this is already done, then you need to resort to properly quoting your column names:
SELECT `Business Name` FROM annoying_table
Usually these sorts of things are created by people who have used something like Microsoft Access and always use a GUI to do their thing.
How to specify a Column name (in a where clause) which has a space in MySql
If this is valid, you would have to use backticks:
`Last Name`
but if you ask me, don't do this. It's begging for trouble somewhere along the way. Just use an underscore or CamelCase: LastName
mysql order by column name with space
Try enclosing them in back-ticks like
ORDER BY `Full Name` ASC
HTH
How to create a column name with space in SQL Server
Use brackets in SQL-Server
create table space_check
(
[roll num] int,
name varchar(50)
)
Related Topics
Xcode 4 and Core Data: How to Enable SQL Debugging
How to Find the MySQL My.Cnf Location
MySQL - Error 1045 - Access Denied
Bash Script to Insert Values in MySQL
SQL Join - Where Clause Vs. on Clause
Postgresql Unnest() With Element Number
How Stuff and 'For Xml Path' Work in SQL Server
Ruby Gem MySQL2 Install Failing
Rails 4 Like Query - Activerecord Adds Quotes
Correct MySQL Configuration For Ruby on Rails Database.Yml File
Select Rows Which Are Not Present in Other Table
Optimize Group by Query to Retrieve Latest Row Per User
How to Limit the Number of Rows Returned by an Oracle Query After Ordering
How to Insert a Value That Contains an Apostrophe (Single Quote)