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

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. 

Archived

This topic is now archived and is closed to further replies.

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