Jump to content
  • 0

query_sql command


SyncMaster

Question


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   38
  • Joined:  07/15/13
  • Last Seen:  

I believe i'm doing something wrong in that piece of the script, I would like to know how it should be...

`dias_offline` >= '10' IN (SELECT `dias_offline` FROM `login`)";

e18a00bfa14f4d2f9cc4d91348bd31ab.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2370
  • Joined:  10/28/11
  • Last Seen:  

these kind of error message is pretty self explained.

the column `dias_offline` doesn't exist in your `login` table.

 

what to do to fix it ?

add the missing column `dias_offline`

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   38
  • Joined:  07/15/13
  • Last Seen:  

these kind of error message is pretty self explained.

the column `dias_offline` doesn't exist in your `login` table.

 

what to do to fix it ?

add the missing column `dias_offline`

Yes, it's self explained, but the error isn't because of the column. The "Where Clause" isn't right and not indicating corretly the login folder due to any mistake that I made when I was building the bolded part on the post. The previosly command without being underlined by red with the same column are working and the column 'dias_offline' already added.

 

I need to correct sintax that replace the bold part to make it correctly search the column "dias_offline" inside "login"

`dias_offline` >= '10' IN (SELECT `dias_offline` FROM `login`)";

Edited by SyncMaster
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...