| | |
query problem
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2005
Posts: 1
Reputation:
Solved Threads: 0
i'm having a problem with my SQL query. i'm trying to create another column with values based on the values of the other columns and call it sTitle. Every time i try to execute my SQL statement it brings back this error:
Illegal mix of collations for operation 'concat' Error No. 1271
I can't see anything wrong with my syntax but then again i'm kinda new to this. Here's my SQL:
any advice would be greatly appreciated as this problem has been very frustrating to me. thanks in advance
Illegal mix of collations for operation 'concat' Error No. 1271
I can't see anything wrong with my syntax but then again i'm kinda new to this. Here's my SQL:
MySQL Syntax (Toggle Plain Text)
SELECT CONCAT(rgMake,' ',IF(rgModel='ST','',CONCAT(rgModel,' ')),IF(rgWheels='2','Two','Single'),' Wheel Roll Grinder ',ROUND(inDiaCenter*25.4,0),IFNULL(CONCAT('/',ROUND(inDiaMax*25.4,0)),''),' mm Dia. ',ROUND(inFace*25.4,0),' mm Roll Face') AS sTitle FROM tblMachine WHERE rgBecameAvailable IS NOT NULL ORDER BY rgWheels, ROUND(inDiaCenter*25.4,0), ROUND(inFace*25.4,0)
any advice would be greatly appreciated as this problem has been very frustrating to me. thanks in advance
![]() |
Similar Threads
- sql query problem with MS Access and C# (C#)
- UPDATE query problem (ASP.NET)
- Select Query Problem in access (MS Access and FileMaker Pro)
- query problem (delimiter?) (PHP)
- SQL query problem with WHERE clause (ASP)
- MySql multiple table query problem.... (MySQL)
Other Threads in the MySQL Forum
- Previous Thread: Extracting Results from Query
- Next Thread: checking if a value exists
| Thread Tools | Search this Thread |
agplv3 alfresco api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





