Store the data type of TimeStamp to several lines of code in the database

xiaoxiao2021-03-06  41

Yiz:

http://www.yiz.name

Table 1183163_logs in the field CRT_TIME is the TimeSTAMP type.

// ***************** Insert LOG =================

PreparedStatement PSTMT = conn.preparestatement ("INSERT INTO 1183163_LOGS (Tel, CRT_TIME) VALUES (?,?)");

PSTMT.SetString (1, Callerid);

PSTMT.SetTimeStamp (2, New java.sql.timestamp (new java.util.date (). gettime ()));

PSTMT.ExecuteUpdate ();

/ / ================= Insert log *************

转载请注明原文地址:https://www.9cbs.com/read-71774.html

New Post(0)