Search

Search results

Java Timestamp example - how to create a "current timestamp"

... do I create a "Java current timestamp", i.e., a JDBC Timestamp object to represent the "current time" ... You can create a "current time" JDBC Timestamp in just a few lines of code, using the Java Calendar class ...

Blog - alvin - May 20 2013 - 12:43pm - 1 comment - 0 attachments

A Java MySQL INSERT example (using Statement)

... String myUrl = "jdbc:mysql://localhost/test"; Class.forName(myDriver); ...

Blog - alvin - May 20 2013 - 12:43pm - 0 comments - 0 attachments

A Java MySQL INSERT example (using PreparedStatement)

... String myUrl = "jdbc:mysql://localhost/test"; Class.forName(myDriver); ...

Blog - alvin - May 20 2013 - 12:44pm - 0 comments - 0 attachments

Scala cookbook recipes

... Scala database recipes Scala JDBC connection and SQL SELECT example Scala file read, write, ...

Blog - alvin - May 17 2013 - 1:29pm - 1 comment - 0 attachments

Java MySQL examples and tutorials

... two tutorials may be helpful: A Java MySQL JDBC Driver class and URL example A Spring, MySQL, JDBC, BasicDataSource connection example I hope this collection of ...

Blog - alvin - May 8 2013 - 6:35pm - 0 comments - 0 attachments

A Spring MySQL BasicDataSource connection example

... name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost/my_database" /> <property ... which demonstrates how to load this Spring MySQL JDBC application context file: package com.devdaily.springtest1; import ...

Blog - alvin - Apr 25 2013 - 2:30pm - 0 comments - 0 attachments

A Java MySQL UPDATE example

... String myUrl = "jdbc:mysql://localhost/test"; Class.forName(myDriver); ... Java database programs I almost always use the Spring JDBC libraries to access a database, but when you're first getting started, ...

Blog - alvin - Apr 25 2013 - 2:27pm - 2 comments - 0 attachments

A Java MySQL DELETE example

... String myUrl = "jdbc:mysql://localhost/test"; Class.forName(myDriver); ... Java database programs I almost always use the Spring JDBC libraries to access a database, but when you're first getting started, ...

Blog - alvin - Apr 25 2013 - 2:29pm - 1 comment - 0 attachments

A Java MySQL SELECT example

... String myUrl = "jdbc:mysql://localhost/test"; Class.forName(myDriver); ... Java database programs I almost always use the Spring JDBC library to access a database, but when you're first getting started, I ...

Blog - alvin - Apr 25 2013 - 2:29pm - 0 comments - 0 attachments

Case insensitive SQL SELECT query examples

... that case. (case, insensitive, jdbc, like, lower, lowercase, queries, query, select, sql, string, text, upper, ...

Blog - alvin - Mar 10 2013 - 12:50am - 0 comments - 0 attachments