Olaf has asked for the wisdom of the Perl Monks concerning the following question:
Just need to know what the 'variable is numeric' part ought to be.if (variable is numeric){ $sqlCmd = "Update tablename Set columnname = data where..." } else{ $sqlCmd = "Update tablename Set columname = 'data' where..." }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Database Insert Depending on Data Type
by jZed (Prior) on Dec 18, 2007 at 21:47 UTC | |
by Olaf (Acolyte) on Dec 20, 2007 at 20:45 UTC | |
by jZed (Prior) on Dec 20, 2007 at 21:12 UTC | |
|
Re: Database Insert Depending on Data Type
by moritz (Cardinal) on Dec 18, 2007 at 21:44 UTC | |
|
Re: Database Insert Depending on Data Type
by chrism01 (Friar) on Dec 19, 2007 at 01:08 UTC | |
|
Re: Database Insert Depending on Data Type
by Cop (Initiate) on Dec 19, 2007 at 00:45 UTC |