Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-29-2004, 05:24 AM   #1
Registered: May 2004
Posts: 133

Rep: Reputation: 15
write an update query in shell prompt to update the database in sqlserver

mysql -e 'UPDATE JALALARM SET utime = '2004-09-27 18:00:00' where sdate < '2004-03-15 18:00:00' ' -u root -pmysql tgc..
does not execute
Old 09-29-2004, 07:24 AM   #2
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
you have a '<' in there. thats a special shell character, it means redirect standard input. you need to escape it like this: '\<'
Old 09-29-2004, 07:27 AM   #3
Registered: May 2004
Posts: 133

Original Poster
Rep: Reputation: 15
it does not give any error but prompt with the man page of mysql


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
update query jalldridge Linux - Newbie 4 04-07-2005 12:50 PM
Linux Noob writing simple application that needs to query SQLServer radikaled Linux - Newbie 1 01-18-2005 11:26 AM
how to update urpmi database? pdmackenzie Linux - Software 5 07-19-2004 07:44 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM
Urpmi database update LinuZ Linux - Software 3 08-05-2003 12:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration