forked from jchavarri/sqlgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatetime.xml
30 lines (29 loc) · 882 Bytes
/
datetime.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0"?>
<sqlgg>
<stmt name="select_0" sql="SELECT TIMESTAMPDIFF(MONTH,'2003-02-01','2003-05-01')" category="DQL" kind="select" cardinality="1">
<in/>
<out>
<value name="_0" type="Int"/>
</out>
</stmt>
<stmt name="select_1" sql="SELECT TIMESTAMPDIFF(YEAR,'2002-05-01',@x)" category="DQL" kind="select" cardinality="1">
<in>
<value name="x" type="Datetime"/>
</in>
<out>
<value name="_0" type="Int"/>
</out>
</stmt>
<stmt name="select_2" sql="SELECT TIMESTAMPDIFF(MINUTE,'2003-02-01','2003-05-01 12:05:55')" category="DQL" kind="select" cardinality="1">
<in/>
<out>
<value name="_0" type="Int"/>
</out>
</stmt>
<stmt name="select_3" sql="SELECT TIMESTAMPDIFF(MONTH, '2019-11-12', CURRENT_TIMESTAMP())
" category="DQL" kind="select" cardinality="1">
<in/>
<out>
<value name="_0" type="Int"/>
</out>
</stmt>
</sqlgg>