Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-03-14 : 09:25:16
|
Sreenivas Reddy writes "Q) How can I convert T-SQl Query into Oracle SQl Query and vice versa, which is explained below. Ex: T_SQl :- select * from Employee where Convert(datetime, DateOfBirth, 103) = Getdate() which is convert into SQL Plus Compatable Query like Select * from Employee Where To_date(To_char("DD/mm/yyyy", DateOfBirth)) = sysdate; Thank you.RegardsSreenivas Reddy" |
|
joldham
Wiseass Yak Posting Master
300 Posts |
Posted - 2002-03-14 : 09:41:40
|
Looks like you did pretty well to me.Where (what program) and why do you want to do this?Edited by - joldham on 03/14/2002 09:42:38 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-03-14 : 10:46:38
|
You might want to convert the constant (getdate()) into the format of the table field rather than the other way round so that it can make use of any indexes/statistics.==========================================Cursors are useful if you don't know sql.Beer is not cold and it isn't fizzy. |
|
|
|
|
|