![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Help in Java database connectivity with JDBC where data input by user!!Hi all,
Can someone help me to solve this problem? As below coding, i manage to run the program and key in the date, but the selected date i just key in cannot detect by SQL? the program cannot show the data by date that just key in by user on running time?? i used firstDate to collect the date from user and at my SQL queries, i put ".....WHERE LOG_DATE = 'firstDate'......;", but the output show nothing, if i straight put ".....WHERE LOG_DATE = '2005-08-04'.....;", then no problem! This statement true or not?? what should i do? JAVA Code:
rgds, Bryan Last edited by LuciWiz : 27-Oct-2005 at 01:18.
Reason: Please insert your Java code between [java] & [/java] tags
|
|
#2
|
||||
|
||||
Re: Help in Java database connectivity with JDBC where data input by user!!Hi bryan,
When you enter variable name inside an string statement, it will not recognize the variable name. i.e: JAVA Code:
The variable name firstDate is not recognized here. So what can we do now? Just enter the variable name by string concatenation. i.e like this: JAVA Code:
Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#3
|
|||
|
|||
Re: Help in Java database connectivity with JDBC where data input by user!!Thanks Paramesh, without your help i think i need a lot of time to do it!
You are the greatest in the world! Rgds, Bryan |
Recent GIDBlog
Developing GUIs with wxPython (Part 3) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| [GIM] gim.h | dsmith | C Programming Language | 0 | 18-Jan-2005 08:48 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 15:13 |
| Script needed for letting user input a few days of data for tracking and analysis. | tradertt | MySQL / PHP Forum | 3 | 06-Mar-2003 02:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The