PriteshP23 Posted August 27, 2013 Share Posted August 27, 2013 Query: SELECT UMTS_napetude_cell.parent, UMTS_napetude_nodeb.idnap FROM UMTS_napetude_cell LEFT JOIN UMTS_napetude_nodeb ON UMTS_napetude_cell.parent IS NOT LIKE CONCAT('%',UMTS_napetude_nodeb.idnap,'%') WHERE UMTS_napetude_cell.parent IS NOT NULL Error: #1064 - You have an error in your SQL syntax near 'LIKE CONCAT('%', UMTS_napetude_nodeb.idnap,'%')WHERE UMTS_napetude_cell.parent ' at line 3 Thanks in advanced. Quote Link to comment Share on other sites More sharing options...
gvp16 Posted August 27, 2013 Share Posted August 27, 2013 Drop the IS and should work. Quote Link to comment Share on other sites More sharing options...
PriteshP23 Posted August 27, 2013 Author Share Posted August 27, 2013 Drop the IS and should work. Server is not working with this query. ON UMTS_napetude_cell.parent NOT LIKE CONCAT('%',UMTS_napetude_nodeb.idnap,'%') Quote Link to comment Share on other sites More sharing options...
gvp16 Posted August 27, 2013 Share Posted August 27, 2013 Whats the error message this time? Quote Link to comment Share on other sites More sharing options...
PriteshP23 Posted August 27, 2013 Author Share Posted August 27, 2013 Network Error (tcp_error) - 503 error - A communication error occurred: "" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. Quote Link to comment Share on other sites More sharing options...
gvp16 Posted August 27, 2013 Share Posted August 27, 2013 are you only getting then that when you remove the "IS" from the IS NOT ? That error message sounds like a server or connection problem rather than an mysql issue. Quote Link to comment Share on other sites More sharing options...
PriteshP23 Posted August 27, 2013 Author Share Posted August 27, 2013 That error message sounds like a server or connection problem rather than an mysql issue. There is query error for sure. There is no server/connection problem. Quote Link to comment Share on other sites More sharing options...
gvp16 Posted August 27, 2013 Share Posted August 27, 2013 ok, you still didn't answer the first part of the question, do you only get that message when removing the IS. Is this a php based application, is error reporting on? or can you turn it on and do you get any errors? the query could be returning null which is resulting the script to fail. This is all an assumption as I dont know anything about the application. Quote Link to comment Share on other sites More sharing options...
PriteshP23 Posted August 27, 2013 Author Share Posted August 27, 2013 BEFORE removing "IS", it gives error that i have posted inquestion and after you know. Of course, it is php based application and i have used MySQL database. Quote Link to comment Share on other sites More sharing options...
vinny42 Posted August 31, 2013 Share Posted August 31, 2013 Connection errors usually indicate timeouts or resultsets that are too large to handle. Using LIKE on a string that starts with an % sign is painfully slow. If the query takes too long to complete, the server or the connection might timeout. How long does the query run before you get this error? Quote Link to comment Share on other sites More sharing options...
PriteshP23 Posted September 2, 2013 Author Share Posted September 2, 2013 It takes more than 2 minutes and than it gives error message. I said this is not a problem because earlier i had other queries which takes around 5 minutes and gives the expected result. Quote Link to comment Share on other sites More sharing options...
vinny42 Posted September 3, 2013 Share Posted September 3, 2013 If timeouts aren't the problem then there are two options left; either the resultset is too big (try doing a count() without selecting any columns, and see how many rows the query expectes to return) or the query is causing the MySQL backend to crash, although I would expect an error like "server has gone away" when that happens. However, this is MySQL, nothing is ever what you expect it to be :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.