why the ?Originally posted by dumbdumb!:i did oracle
Use prepared statements. Save you some trouble and your code from SQL injections as well.Originally posted by Shotgun:SQL is something I HATE A LOT.
Seriously, is there a better the way to create an SQL statement in JSP other than
',"+string+"blah = "'+string2+' "Where soNso= '"+string3+"';";
I have to write so many " ' , and ; until i see also blur. ARgh
***No, im not playing with SQLInjection on this forum ***
Because can like this ma:Originally posted by ndmmxiaomayi:I do that a lot for PHP too. But without the + signs. I don't remember using + signs much except when doing additions.
mysql_query("INSERT INTO dbName VALUES(DEFAULT, $var1, '$var2', '$var3')");
Some examples? Do i have to code a new class?Originally posted by LatecomerX:Use prepared statements. Save you some trouble and your code from SQL injections as well.
Ya, and I find it very sickening. Hand pain to type. Can I have a cleaner syntax like Python?Originally posted by LatecomerX:Because can like this ma:code:
mysql_query("INSERT INTO dbName VALUES(DEFAULT, $var1, '$var2', '$var3')");
I suppose JSP has a PreparedStatement class.Originally posted by Shotgun:Some examples? Do i have to code a new class?
I need to address the SQL injection problem as well. Was playing with the idea of using javascript to screen out all the ; ' etc... but just the thought of it gave me a headache cos JS doesnt have a compiler to check errors.. =/ Best thing i got is firebug.
**currently working using netbeans 5.5**
haha cuz they are looking for experienced! hahahaOriginally posted by thoreldan:why the ?
you know companies are willing to spend top dollars on hiring experienced Oracle DBA ?