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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -