Hi , I don't know whether this is correct forum for sql query, but i have stucked that's why asked question. Highly sorry for that.
In my sql query, i just need to check whether dataexist for perticular userid.
Here always, only one row will return when data exist.
I have two options
1. select count(columnname) from table where userid=:userid
2. select count(1) from tablename where userid=:userid
I am thinking second one should i use, because it may have good resonse time as compare with first one.
Can anyone please help me to clear this concept.