Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By alisoroush7
#829903
hi guys
i have a table in sql which is like this:

product code weight
1235896 0.5
3256kms 1.5
dk-kmsw 3

and the data type for [product code] is nvarchar
now i want to call the weight by putting the product code in processmaker
the code that i wrote is this:

select [weight] from table where [product code] = @#textVar047

and by this code i get nothing, i have changed the @# to @@, @= but it did not work.

and the [product code] data type is NVARCHAR
how can i do this?

any comment is appreciated.
User avatar
By ronrich
#829908
Hi alisoroush7,

Pleas try this way

select [weight] from table where [product code] = '@#textVar047'

note that I've added the single quotes

Best,
By alisoroush7
#829909
ronrich wrote: Mon May 09, 2022 2:33 pm Hi alisoroush7,

Pleas try this way

select [weight] from table where [product code] = '@#textVar047'

note that I've added the single quotes

Best,
thanks you very much. it worked

Thanks for the link, amosbatto! I was searching fo[…]

Hello Please can you help me with the place where […]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 versi[…]

AI bot development involves creating intelligent b[…]