Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 38926 invoked from network); 9 Jun 2006 19:51:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jun 2006 19:51:10 -0000 Received: (qmail 69762 invoked by uid 500); 9 Jun 2006 19:51:10 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 69384 invoked by uid 500); 9 Jun 2006 19:51:09 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 69373 invoked by uid 99); 9 Jun 2006 19:51:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 12:51:09 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of manjula.kutty@gmail.com designates 64.233.184.239 as permitted sender) Received: from [64.233.184.239] (HELO wr-out-0506.google.com) (64.233.184.239) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 12:51:08 -0700 Received: by wr-out-0506.google.com with SMTP id i23so747053wra for ; Fri, 09 Jun 2006 12:50:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=o5EieZk8UCh+/QyiB+5NF1FxSKaowIoZfhq7Wo0FvQO4NE43R34TST9UHqUmjFSoZ3kwNzt31oRIlelAHrWuStV5Dl5cubUFRzQ3R9w3u7YEYMdy0O1IqPkd98GpJ4jR5w0+eGnCowuN7zUGXV2eYCk5suu044PCCZroAeTS8Hw= Received: by 10.54.71.14 with SMTP id t14mr1606382wra; Fri, 09 Jun 2006 12:50:47 -0700 (PDT) Received: from ?9.72.133.61? ( [32.97.110.142]) by mx.gmail.com with ESMTP id 67sm3621431wra.2006.06.09.12.50.45; Fri, 09 Jun 2006 12:50:46 -0700 (PDT) Message-ID: <4489D117.6000908@gmail.com> Date: Fri, 09 Jun 2006 12:50:47 -0700 From: Manjula G Kutty User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Re: equal query for derby " select sysdate from dual in oracle" References: <20060609183002.19410.qmail@web36507.mail.mud.yahoo.com> In-Reply-To: <20060609183002.19410.qmail@web36507.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N vijayan k wrote: > Hi, > > I like to get the system date from the derby SQL statment. > in oracle we have default table "dual" here > if we write query as "select sysdate from dual" w'll get the system date. > > i need like this in derby > > Please help me out ASAP > > Thanks > > Vijayan.gk > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > Hi, I don't know much about oracle. But in derby if you give the following command VALUES CURRENT_TIMESTAMP you will get the current system time. For further reference please visit this link http://db.apache.org/derby/docs/dev/ref/rrefjdbc88908.html Thanks Manjula