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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -