User Profile

Collapse

Profile Sidebar

Collapse
ashokakr
ashokakr
Last Activity: Mar 28 '08, 12:52 PM
Joined: Jul 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hi,

    i tried ur code but i need to get the two fields if the value is greater the zero, not the single field.

    so please solve the problems quickly
    See more | Go to post

    Leave a comment:


  • ashokakr
    started a topic How to get more than one filed in Case Statement

    How to get more than one filed in Case Statement

    Hi All,

    I am new to mysql, can any one help me to solve this problem,

    i have a query, based on the condition i have to get two fields from the same table,
    how to solve this problem,


    select
    (case
    when hor_val>0 then hor_desc,hor_va l
    end) from temp

    hor_val is a integer filed, hor_desc is a varchar field,

    based on the har_val i have to get...
    See more | Go to post

  • ashokakr
    started a topic Using cursor for update

    Using cursor for update

    hi all,
    I have a doubt in cursor.Can we use cursor for update query in procedures.
    I tried all the cursor concepts but i could not found it, So please help me in giving the syntax for the Update query using Curcor.
    See more | Go to post

  • ashokakr
    started a topic How to add a column to the table

    How to add a column to the table

    [CODE=sql]
    ALTER TABLE castreq ADD COLUMN custno integer DEFAULT 0;
    [/CODE]
    the value of custno is "CLASS I";

    can i use this statement in procudere
    my procedure is to add more columns in the table

    Please give the correct statement to add a column in procudure
    See more | Go to post
    Last edited by michaelb; Jul 29 '07, 07:43 PM. Reason: fixed the CODE tags

  • ashokakr
    started a topic What is the output statement in PostgreSQL

    What is the output statement in PostgreSQL

    Hi all

    [CODE=sql]
    declare
    cnt integer;
    begin
    cnt=5;
    dbms_output.put _line(cnt);
    end;
    [/CODE]

    This is my sample procedure, no return type.
    when i execute this procedure it shows that
    "Syntax error at or near 'dbms_output'"

    can any one help me in this problem by giving the correct syntax for the
    output statement.
    See more | Go to post

  • ashokakr
    replied to "is not scalar Variable" Error
    ok sir,

    the datatype for coitem_linenumb er is integer...
    See more | Go to post

    Leave a comment:


  • ashokakr
    started a topic "is not scalar Variable" Error

    "is not scalar Variable" Error

    Hi all
    This my procedure, when i try to run the procedure it says
    "coitem_linenum ber" is not a scalar variable.

    Can any one say what is the error and how i can correct it

    [CODE=sql]
    declare
    wotype CHARACTER;
    id integer;
    so_no ALIAS FOR $1;
    _wono integer;
    _wolno integer;
    woisid integer;
    wostdate date;
    wosdate date;
    woqty integer;...
    See more | Go to post
    Last edited by michaelb; Jul 20 '07, 10:54 AM. Reason: added the CODE tags
No activity results to display
Show More
Working...