Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Syntax error near “ORDER BY order DESC” in MySQL?

Posted on 2013-05-11
6
Medium Priority
?
919 Views
Last Modified: 2013-05-17
Hi Guys !


I have made a database importation, all was okay !

Then i started a server who added some items in my DB, but now when i want to see which items i have in my database and i click on any table of my DB, i have this error :

SELECT tracking_active FROM . WHERE db_name = 'dol'  AND table_name = 'ability'  ORDER BY version DESC


Please someone has an idea ?

I changed the root password.
0
Comment
Question by:Amoniks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 39157936
Is this SQL Server or MySQL? You've posted in both areas.
0
 
LVL 46

Expert Comment

by:Kent Olsen
ID: 39157950
And, there's no error posted.   :(
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39158012
You might try this:
SELECT tracking_active FROM dol.ability ORDER BY version DESC

In MySQL the FROM clause can use the format DBNAME.TABLENAME
http://dev.mysql.com/doc/refman/5.0/en/select.html

You can also explicitly SELECT the data base by name.  If you have the "dol" data base selected, your query might work this way.
SELECT tracking_active FROM ability ORDER BY version DESC
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39159785
And, there's no error posted.   :(
I could be wrong, but I believe it is in the title.  :)

But yes, since this has nothing to do with MS SQL Server, that topic should be dropped.
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1500 total points
ID: 39159878
Please test the query I posted and let us know if it worked.  There are a lot of moving parts to PHP + MySQL.  If you want to show us the PHP code that sets up  your test case (the SSCCE) it might be easier to give assistance.

If you want a good learning resource to help you get started with PHP and MySQL, I can recommend this book.  Now in its fifth printing it has been a permanent part of my professional library since Edition One.  Good examples, very readable and it comes with a downloadable code library you can copy and modify for your own needs.
http://www.amazon.com/dp/0672328887
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39174052
Please see the grading guidelines:
http://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26

Please explain why you did not respond to my last request and why you gave a marked-down grade?  I don't understand what was wrong with my efforts to help you.

Thanks, ~Ray
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

660 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