我是sql中的新手。当我要使用此查询时,它会发生错误。这是我的疑问:
with new_table (loan,customer_city) as (
select loan.loan_number , customer.customer_name, customer_city
from loan,borrower,customer
where customer.customer_name = borrower.customer_name and loan.loan_number = borrower.loan_number order by loan_number )
select customer_city from new_table ;
答案 0 :(得分:5)
在Oracle 11.2中引入了CTE声明中的列别名。在10g中,您必须在子查询本身中创建别名,例如
(function (angular) {
'use strict';
angular
.module('webModule', [
'ng'
, 'ngResource'
,'miEnvironment'
,'gettext'
,'analyticsFilters'
,'touchEvents'
,'flyoutModule'
])
.constant('estimatingUtilitiesSettings', {
SourceKeys: {
'Template': 1
,'Part': 2
}
});
})(window.angular);