Unix Technical Forum

Re: using insert with Sybase Case expression

This is a discussion on Re: using insert with Sybase Case expression within the Sybase forums, part of the Database Server Software category; --> Kevin wrote: > > I have a stored procedure where I would like to make a decision within > ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 03:40 PM
Anthony Mandic
 
Posts: n/a
Default Re: using insert with Sybase Case expression

Kevin wrote:
>
> I have a stored procedure where I would like to make a decision within
> on which table to insert a row into based on the value of an input
> variable. Is it possible to use an INSERT with a CASE expression in
> Sybase? Thanks in advance.


A normal if expression is all you need.

-am © 2003
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com