06-22-2015
Hi Don,
It is a typo mistake. The date is @date_val = '2014-01-01 23:00:00.999' only. Thanks for pointing it out.
The same sql is working in sql server but giving error in unix.
Please suggest.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi - I am totally new to UNIX so please bear with me...
I run a java program on Win NT server to do file ftp to UNIX server.
I log in, cd, create ftp file on UNIX and quit from my java progam - all works well.
Now I want to execute a script on UNIX.
At the UNIX 'console'/'shell' (!?) you... (1 Reply)
Discussion started by: CJ Walt
1 Replies
2. Shell Programming and Scripting
I have created get_list.bat file containing following line:
dir /B /O-d >file_list.txt
I am executing ftp command from Unix box and transferring get_list.bat file to windows server.
In my next ftp command I am trying to execute this test.bat file by entering this line:
get_list
or by... (9 Replies)
Discussion started by: alx
9 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to execute the following unix command through my java code -
zip -e
When i execute this command from the command prompt, i am prompted for a password in the following manner -
Enter password:
Verify password:
Is it possible to provide the password inthe first command itself... (5 Replies)
Discussion started by: jacob23
5 Replies
4. Shell Programming and Scripting
Hi,
I am getting an error while executing the mail command....
It says saved letter in dead.letter even though the email id id correct .
Please do help..
Madhu (2 Replies)
Discussion started by: madhumathikv
2 Replies
5. Shell Programming and Scripting
Hi:
I have a touble with executing a variable that stores a unix command string.
The following would be excuted fine:
command='ls -l'
`echo $command`
However, the following gives me an error:
command='(uuencode file1 file1; uuencode file2 file2) | mailx email_id'
`echo... (1 Reply)
Discussion started by: sagewise
1 Replies
6. AIX
Hi Folks
I get the below error in my aix box. Im not sure if this is an AIX issue or a TWS issue. Please advice me
cbspsdb01:/opt/TWS/bin # ./conman status
exec(): 0509-036 Cannot load program ./conman because of the following errors:
0509-150 Dependent module... (6 Replies)
Discussion started by: newtoaixos
6 Replies
7. Red Hat
Hi,
I am using RHEL4 and Oracle11g , my application requires odbc connection
hence I modified ODBC.ini file and when I exceute isql commande I got the following error.
isql: error while loading shared libraries: /opt/nastel/apwmq/odbc/lib/libodbc.so.1: requires glibc 2.5 or later dynamic... (1 Reply)
Discussion started by: roopalidalvi231
1 Replies
8. Red Hat
Hi,
I am using RHEL4 and Oracle11g , my application requires odbc connection
hence I modified ODBC.ini file and when I exceute isql commande I got the following error.
isql: error while loading shared libraries: /opt/nastel/apwmq/odbc/lib/libodbc.so.1: requires glibc 2.5 or later dynamic... (4 Replies)
Discussion started by: roopalidalvi231
4 Replies
9. Shell Programming and Scripting
Hi,
I have 2 files temp1.sh and temp2.sh as follows:
===========
temp1.sh
===========
echo "session1"
sh temp2.sh
echo "exit session2 and enter session1"
=================================
=============
temp2.sh
=============
echo "session2"
sh
echo "exit session2"... (5 Replies)
Discussion started by: RP09
5 Replies
10. Solaris
Hello,
Our applications are deployed in SunOS 5.10 servers. All the team members use a same username/pwd to login to the box. Very often we face issue were we could see that weblogic server instance are KILLED and we are not able to trace who executed kill command. All team members use PUTTY to... (2 Replies)
Discussion started by: santtarius
2 Replies
LEARN ABOUT DEBIAN
mdb-sql
MDBTools(1) MDBTools(1)
NAME
mdb-sql - SQL interface to MDB Tools
SYNOPSIS
mdb-sql [-HFp] [-d delimiter] [-i file] [-o file] [database]
DESCRIPTION
mdb-sql is a utility program distributed with MDB Tools.
mdb-sql allows querying of an MDB database using a limited SQL subset language.
OPTIONS
-H Supress header row.
-F Supress footer row.
-p Turn off pretty printing. By default results are printed in an ascii table format which looks nice but is not conducive to manipu-
lating the output with unix tools. This option prints output plainly in a tab separated format.
-d Specify an alternative column delimiter. If no delimiter is specified, columns will be delimited by a tab character if pretty print-
ing (-p) is turned off. If pretty printing is enabled this option is meaningless.
-i Specify an input file. This option allows an input file containing the SQL to be passed to mdb-sql. See Notes.
-o Specify an output file. This option allows the name of an output file to be used instead of stdout.
COMMANDS
mdb-sql in interactive mode takes some special commands.
connect to <database>
If no database was specified on the command line this command is necessary before any querys are issued. It also allows the switch-
ing of databases once in the tool.
disconnect
Will disconnect from the current database.
go Each batch is sent to the parser using the 'go' command.
reset A batch can be cleared using the 'reset' command.
list tables
The list tables command will display a list of available tables in this database, similar to the mdb-tables utility on the command
line.
describe table <table>
Will display the column information for the specified table.
quit Will exit the tool.
SQL LANGUAGE
The currently implemented SQL subset is quite small, supporting only single table queries, no aggregates, and limited support for WHERE
clauses. Here is a brief synopsis of the supported language.
select:
SELECT [* | <column list>] FROM <table> WHERE <where clause>
column list:
<column> [, <column list>]
where clause:
<column> <operator> <literal> [AND <where clause>]
operator:
=, =>, =<, <>, like, <, >
literal:
integers, floating point numbers, or string literal in single quotes
NOTES
When passing a file (-i) or piping output to mdb-sql the final 'go' is optional. This allow constructs like
echo "Select * from Table1" | mdb-sql mydb.mdb
to work correctly.
The -i command can be passed the string 'stdin' to test entering text as if using a pipe.
ENVIRONMENT
MDB_JET3_CHARSET
Defines the charset of the input JET3 (access 97) file. Default is CP1252. See iconv(1).
MDBICONV
Defines the output charset. Default is UTF-8. mdbtools must have been compiled with iconv.
MDBOPTS
semi-column separated list of options:
o use_index
o no_memo
o debug_like
o debug_write
o debug_usage
o debug_ole
o debug_row
o debug_props
o debug_all is a shortcut for all debug_* options
HISTORY
mdb-sql first appeared in MDB Tools 0.3.
SEE ALSO
gmdb2(1) mdb-export(1) mdb-hexdump(1) mdb-prop(1) mdb-ver(1) mdb-array(1) mdb-header(1) mdb-parsecsv(1) mdb-schema(1) mdb-tables(1)
AUTHORS
The mdb-sql utility was written by Brian Bruns.
BUGS
The supported SQL syntax is a very limited subset and deficient in several ways.
0.7 13 July 2013 MDBTools(1)