Some website improvements
This commit is contained in:
parent
99e5ad4457
commit
bb41ed66ea
@ -4,7 +4,7 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>jOOQ - <?php print preg_replace('%<br/>%', ' - ', getH1()); ?></title>
|
||||
<title><?php print preg_replace('%<br/>%', ' - ', getH1()); ?> - jOOQ is a fluent API for typesafe SQL query construction and execution</title>
|
||||
<meta property="og:title" content="jOOQ" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="http://www.jooq.org" />
|
||||
@ -12,12 +12,12 @@
|
||||
<meta property="og:site_name" content="jOOQ" />
|
||||
<meta property="fb:admins" content="649865547" />
|
||||
|
||||
<meta name="description" content="jOOQ effectively combines complex SQL, typesafety, source code generation, active records, stored procedures, UDTs, and Java in a fluent API. Supported DBs are DB2, Derby, Ingres, H2, HSQLDB, MySQL, Oracle, Postgres, SQLite, SQL Server, Sybase"/>
|
||||
<meta name="description" content="jOOQ, a fluent API for typesafe SQL query construction and execution. Supported DBs are DB2, Derby, Ingres, H2, HSQLDB, MySQL, Oracle, Postgres, SQLite, SQL Server, Sybase"/>
|
||||
<meta name="author" content="Lukas Eder"/>
|
||||
<meta name="keywords" content="jOOQ, JDBC, database abstraction, source code generation, SQL, stored procedures, stored functions, UDT, UDF, typesafe, fluentAPI"/>
|
||||
|
||||
<link href='http://fonts.googleapis.com/css?family=PT+Mono' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Special+Elite' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Special+Elite' rel='stylesheet' type='text/css'>
|
||||
<link href="<?=$root?>/css/jooq.css" type="text/css" rel="stylesheet" />
|
||||
<link href="<?=$root?>/js/prettify/prettify.css" type="text/css" rel="stylesheet" />
|
||||
<script type="text/javascript" src="<?=$root?>/js/prettify/prettify.js"></script>
|
||||
|
||||
@ -3669,13 +3669,13 @@ create.select(T_PERSON.NAME)
|
||||
<p>In order to express a SQL query like this one: </p>
|
||||
<sql>SELECT ((1 + 2) * (5 - 3) / 2) % 10 FROM DUAL</sql>
|
||||
<p>You can write something like this in jOOQ: </p>
|
||||
<java>create.select(create.val(1).add(2).mul(create.val(5).sub(3)).div(2).mod(10)); </java>
|
||||
<java>create.select(val(1).add(2).mul(val(5).sub(3)).div(2).mod(10)); </java>
|
||||
|
||||
<h3>Datetime arithmetic</h3>
|
||||
<p>jOOQ also supports the Oracle-style syntax for adding days to a Field<? extends java.util.Date> </p>
|
||||
<code-pair>
|
||||
<sql>SELECT SYSDATE + 3 FROM DUAL;</sql>
|
||||
<java>create.select(create.currentTimestamp().add(3));</java>
|
||||
<java>create.select(currentTimestamp().add(3));</java>
|
||||
</code-pair>
|
||||
|
||||
<p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user