sql - A better way to do this query in PL/pgSQL -


i trying turn following query transact-sql pl/pgsql

select @val1 = val1, @val2= val2 dbo.mytable val3 = @val3 

this have come out:

v_val1 := val1 mytable val3  = v_val3; v_val2 := val2 mytable val3 = v_val3; 

is there better way this? may in same sentence transact-sql

select val1, val2 v_val1, v_val2  mytable  val3 = v_val3 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -