Home > database > Questions about pl/SQL query to write
Questions about pl/SQL query to write
Time:10-04
Now there is a table, only focus on one of the coil (30), record the time (hours and minutes on, interval for 5 minutes), three flow field, I need the output flow rate table to CSV file, transverse for daily 288 for five minutes, the vertical axis for different coil, which is 288 x 30 on a table, query the how to write the results to what I want form form? Again a little bit greedy, I want to form output 365 days a year, is there any way you can cycle through the query final output flow table every day? A novice, I hope the great god said a little bit in detail, thank you very much!
CodePudding user response:
The origin of your data look like? The result is what kind of expectations do you have? Some test data are given
CodePudding user response:
To study the dbms_sql package Combining with the utl_file, probably can meet your requirements