Is there a way to get the current value in the process of a select statement?

Such as

SELECT pk_ID, columnN
and be able to evaluate what pk_ID is at this point
WHERE This = That

Recommended Answers

All 2 Replies

What is it that you are trying to do? :s

yes u can..

SELECT pk_ID, columnN,(case when columnM is '1' then TableName.pk_ID else '0' end) as columnM from TableName
WHERE This = That

This is just an example..wat u can do is use the TableName.ColumnName anywhere..

if any more issues..get back to me..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.