Jump to content

Can you use < and >= in a SQL WHERE statement?


kpetsche20

Recommended Posts

yeah better safe than sorry...

 

i was once writing a script because i was lazy,

 

it was to search all files in a directory and rename them if they had a word.

 

then go through all the files and search the text they contained and change the word inside them,

 

it would do that recursivly for all sub directorys,

 

i forgot to put in checking for the starting path so it went through and did it on every file it had access too.

 

kinda scary when you see Access Denied in C:\windows ...

 

so yeah thats my point.

 

if he doesnt know sql very well he may not know the limits and lengths of the different statements

Link to comment
Share on other sites

I can understand not being sure about a command or something, and not wanting to mess something up.  But that's what sandboxes are for.  There's no reason why you need to test new script out on a live site, where if something goes wrong, you're screwed.  But anyways, concerning this specific circumstance, I judge from the context of his post, that he knows that selecting stuff from his db is not going to damage things. After all, his question was not about the select. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.