Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Temporary table

New Here ,
Jan 06, 2011 Jan 06, 2011

Copy link to clipboard

Copied

Hi

I need help with my temporary table in dreamweaver. The user have all privileges and the version of MySql is 5.1.41

I open new recordset and put this in SQL

CREATE temporary table ttt

SELECT *
FROM temp_new
ORDER BY s desc limit 5 ;

SELECT * from ttt  

ORDER BY b  limit 2      

I get :   MySql error# : 1064, You have an error in your SQL Syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near  SELECT * from ttt  

ORDER BY b  limit 2      

I put that code in my MySql program and he didnt send any error he make the operation is just fine but when I put in dreamweaver he send error.

Thanks

TOPICS
Server side applications

Views

442
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 07, 2011 Jan 07, 2011

Copy link to clipboard

Copied

LATEST

niksa88 wrote:

I put that code in my MySql program and he didnt send any error he make the operation is just fine but when I put in dreamweaver he send error.

Internally, Dreamweaver uses JavaScript to manipulate SQL queries before submitting them to MySQL. Unfortunately, the script was written in the days before MySQL supported subqueries. As a result, it sometimes reports false errors with complex SQL queries. This bug has been reported to Adobe. Hopefully, it will be fixed in the next version.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines