sql server - SQL query to show data by today(current) date? -


i trying record database current date here query have tried bu getting no records table:

select * transactions transaction_date = getdate();  

just compare date part

   select *from transactions              convert(char(10), transaction_date  ,126)=convert(char(10), getdate(),126); 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -