You have to put # in place of ' while writing a querry.
For example
SELECT * FROM Student WHERE dateofJoining >
#"+DateTime.Now+"#;
but if you are working with SQL then You can write
SELECT * FROM Student WHERE dateofJoining >
'"+DateTime.Now+"';
CSHARP Code Examples Samples Tutorials
Copyright © C#.NET ASP.NET Articles. All rights reserved.
0 comments:
Post a Comment