1. What to use as a Primary Key of SQL Database of dates stackoverflow.comI am making a SQLite database with Java interface where the user can input information for different dates. Basically its like a diary. But I am having trouble constructing a table ... |
2. sql Date, and getting Primary Key! coderanch.com2 Questions! 1) If I try and send a timestamp to an SqlServer database, where I want the timestamp to be millisecond perfect, how does one achieve this? The following code statusDate = new java.sql.Date(Calendar.getInstance().getTime().getTime()); oh so helpfully strips the hours, mins and seconds off the time, and as the setHour()/setMinute()/setSecond() methods are all depricated, i feel like strangling someone. Any ... |