dbTalk Databases Forums  

CURRENT_TIMESTAMP and CURRENT_USER

comp.databases.sybase comp.databases.sybase


Discuss CURRENT_TIMESTAMP and CURRENT_USER in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
1dg618
 
Posts: n/a

Default CURRENT_TIMESTAMP and CURRENT_USER - 10-17-2011 , 05:29 PM






In Sybase 15, can I do the following:

CREATE TABLE ir_port_source
(
updated_by VARCHAR(128) DEFAULT CURRENT
USER,
updated_date TIMESTAMP DEFAULT CURRENT
TIMESTAMP
)

where on an update the updated_by and updated_date will automatically
be updated? This way I don't have to use an update trigger to update
the columns?

My syntax may be wrong. I have never done it before.

Does this work in Sybase 15?

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.