我發現PostgreSQL類似於運營商的作品有點奇怪。我不小心檢查了下面查詢中的空間,但對結果感到驚訝。 select 'Device Reprocessing' similar to '%()%' --return true select 'Device Reprocessing' similar to '%()%' --return true select 'DeviceReprocessin
ERROR: structure of query does not match function result type DETAIL: Returned type double precision does not match expected type integer in column 1. CONTEXT: PL/pgSQL function get_analysis1_data(dat
我試圖選擇公司和日期不同的數據類型/ ID的數據表中的數據。 換句話說,我想company_id, dates_id, daily_val其中wh_calc_id = 344如果相同company_id/dates_id組合不存在其中wh_calc_id = 368。 我鬆散下面這個例子: Select rows which are not present in other table 這些都是我