我在转换这一系列的MSSQL时遇到了困难:
Union All
Select 1,table_name,3,4,5,6,7,8
from (select top 1 table_name
from information_schema.tables
order by 1) as subname
order by 1 desc
到Oracle。
到目前为止,我有:
Union All
Select 1,table_name,3,4,5,6,7,8
from
(select *
from
(select table_name
from all_tables order by 1)
where rownum <= 1) as subname
order by 1 desc
引发的错误是
ORA-00933:SQL命令未正确结束
任何帮助将不胜感激!
编辑:
找到解决方案,请参阅第一条评论。
解决方案:
Union All Select 1,table_name,3,4,5,6,7,8 from (select * from (select table_name from all_tables order by 1) where rownum <= 1) subname order by 1 desc--
答案 0 :(得分:0)
as
要在Oracle中命名子查询,请不要使用myDataSet = myWS.LookUp(sessionUserID, "UserID", "Users"); // Adapt this to the way you populate the dataset
myDataTable = Tables["ProductTable"];
DataRow drCurrent =MyDataSet.Tables["ProductTable"].Rows[gridView1.GetFocusedDataSourceRowIndex()]
myDataSet.AcceptChanges()
drCurrent.Delete();
myWS.UpdateDB(myDataSet);
关键字。只需将名称直接放在括号后面。