Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Where parameter, and wildcard
Wed, Jan 25 2017 6:05 AMPermanent Link

Matthew Jones

Can I just confirm that using a parameter doesn't introduce any sort of wildcard facility?

That is, if I use

DELETE FROM table WHERE MyColumn = :USER_INPUT

that the user cannot enter anything that could ever delete more than one record (assuming MyColumn is unique).

I don't want to end up with some sort of LIKE where they can match anything.

--

Matthew Jones
Wed, Jan 25 2017 6:40 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Matthew


Certainly - off you go and confirm it then Smiley

Or alternatively with the syntax you have even if the user types 'DELETE * FROM TABLEX' nothing much will happen unless you have a row where MyColumn = 'DELETE * FROM TABLEX'

Roy Lambert
Wed, Jan 25 2017 7:06 AMPermanent Link

Matthew Jones

Roy Lambert wrote:

> Matthew
>
>
> Certainly - off you go and confirm it then Smiley
>
> Or alternatively with the syntax you have even if the user types 'DELETE * FROM TABLEX' nothing much will happen unless you have a row where MyColumn = 'DELETE * FROM TABLEX'

Thanks - I just had that moment of dread... Better to double check with the expert. 8-)

--

Matthew Jones
Wed, Jan 25 2017 7:53 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Matthew


>Thanks - I just had that moment of dread... Better to double check with the expert. 8-)

In that case you'll just have to wait for an expert to appear - I'm not one - I didn't even spot the lack of a WHERE clause in Adam's post!!

Roy Lambert
Mon, Jan 30 2017 3:05 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< In that case you'll just have to wait for an expert to appear - I'm not one - I didn't even spot the lack of a WHERE clause in Adam's post!! >>

Forest/trees issues are more a reflection of our age/eyesight than our expertise. Or so I keep telling myself... Wink

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jan 31 2017 5:06 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


>Forest/trees issues are more a reflection of our age/eyesight than our expertise. Or so I keep telling myself... Wink

Many thanks for that - first chuckle of the day.

Roy
Image