Request covered all records using years as refrence
Hi allMy problem came as sequence of another thread, I've created here in the forum:
All the proposed solutions were very useful, but not perfect one.
Although I found a solution to this problem that doesn't involve creating a query, I came back with a similar situation with a need for the query. I'll try to better explain the issue.
I have my data like this sample
WITH dis AS (SELECT 1 AS COD,
'A' AS uc,
1977 AS initial_year,
2002 AS end_year,
10024 AS pe_codigo
FROM DUAL),
cred AS (SELECT 100 AS id,
'A' AS uc,
1982 AS initial_year,
1982 AS end_year,
2 AS credits,
10024 AS pe_codigo
FROM DUAL
UNION ALL
SELECT 200 AS id,
'A' AS uc,
1986 AS initial_year,
1986 AS end_year,
7 AS credits,
10024 AS pe_codigo
FROM DUAL
UNION ALL
SELECT 300 AS id,
'A' AS uc,
1988 AS initial_year,
1988 AS end_year,
4 AS credits,
10024 AS pe_codigo
FROM DUAL
UNION ALL
SELECT 55 AS id,
'A' AS uc,
1989 AS initial_year,
1989 AS end_year,
3 AS credits,
10024 AS pe_codigo
FROM DUAL
UNION ALL
SELECT 330 AS id,
'A' AS uc,
1990 AS initial_year,
1990 AS end_year,
4 AS credits,
10024 AS pe_codigo
FROM DUAL
UNION ALL
SELECT 102 AS id,
'A' AS uc,
1991 AS initial_year,
1991 AS end_year,
6 AS credits,
10024 AS pe_codigo
FROM DUAL)
-DIS is a table with many distinct pairs of UC/PE_CODIGO.-Table CRED have some additional data of each UC/PE_CODIGO. Each UC/PE_CODIGO may have one or more records with different INITIAL_YEAR and END_YEAR (and credits).
What I need?
-J' I need a query that returns all records, joining the two tables by PE_CODIGO and UC is, and covering the range of years that's on the table, SAY. In this example, I want to record from the year 1977 until 2002.
Using this rule (and this example) I want a record between 1997 and 1981, between 1982 and 1982, others from 1983 to 1985, from 1986 until 1986, and so on like this:
COD ID UC initial_year end_year credits pe_codigo
1 NULL A 1977 1981 NULL 10024
1 100 A 1982 1982 2 10024
1 NULL A 1983 1985 NULL 10024
1 200 A 1986 1986 7 10024
1 NULL A 1987 1987 NULL 10024
1 300 A 1988 1988 4 10024
1 55 A 1989 1989 3 10024
1 330 A 1990 1990 4 10024
1 102 A 1991 1991 6 10024
1 NULL A 1992 2002 NULL 10024
Notes:-TELL is considered to be a "pivot table". I only need chronogram SAY. Coming INITIAL_YEAR.
-END_YEAR (in both tables) can have a NULL value
-When I have no records in the table CRED with years between, the credits column must be a null (not NULL as String). And Yes ID column.
-One END_YEAR must have (not NULL as String) NULL values.
The best I can go it is with this query:
SELECT a.cod,
b.id,
b.uc,
b.initial_year,
LEAST (
b.end_year,
LEAD (b.initial_year)
OVER (PARTITION BY b.uc ORDER BY b.initial_year)
- 1)
end_year,
b.credits,
a.pe_codigo
FROM cred b, dis a
WHERE a.uc = b.uc
AND a.pe_codigo = b.pe_codigo (+)
AND a.end_year >= b.initial_year
COD ID UC initial_year end_year credits pe_codigo
1 100 A 1982 1982 2 10024
1 200 A 1986 1986 7 10024
1 300 A 1988 1988 4 10024
1 55 A 1989 1989 3 10024
1 330 A 1990 1990 4 10024
1 102 A 1991 6 10024
I have different scenarios in the CRED table. But I only need a query which can multiply records between SAY. INITIAL_YEAR and SAY. END_YEAR based in the information I have in the CRED table.Sorry for the long explanation.
Can someone help me, please?
Thank you
Filipe Almeida
Published by: Filipe_Almeida on ago 10/2011 08:09
Hi, Filipe,
The results you want with these new data sample even as the results that you have published with the latest data from the sample?
Filipe_Almeida wrote:
The line with COD = 2 is a different record that cod = 1. Have the same value of UC, but have a different PE_CODIGO. So it is another record.
Yes, it's another record. This is exactly why I don't understand why you want to see cod = 1 in the output for the line where pe_codigo = 10000.
If you wish, you can put 'B' in the column of the CPU for recording with COD = 2...
You say there is a line in the output with the cod = 2? In the results of the sample you have validated, cod = 1 on all lines. Mayber, you need to verify that the results are accurate and post the correct results if they are not.
in tables DIS1 and DIS2 and ID = line 150 CRED table, as well.
Sorry, I'm dion can't understand this. In the examples of new data, is not uc = 'A' for all rows in all tables? Why is - it normal to have a CPU = "B" in the output?
END_YEAR = NULL means that, after INITIAL_YEAR, UC, this number of credits to infinity. For example (using DIS2), UC = 'A' with PE_CODIGO = 10024, in the year 2011 or the year 9999 is worthless credits. The same CPU, but in the year 1989 have 3 credits. But the year 1984 have no credit.
This END_YEAR cannot be NULL when we value END_YEAR DIS table for this specific/PE_CODIGO CPU. In this case the recordset must be completed this year.
I see it; you want to treat a NULL end_year as impossibly high, all year effective at the latest. As my last request was written, it is only a matter then generate a fictitious line dated after the last row of the cred. I did it in the query below, by chaniging
df.end_year
TO
NVL (df.end_year, 9999)
in the last part of the UNION. Find the comment "CHANGED" very near the end.
WITH prev AS
(
SELECT dp.cod
, cp.id
, dp.uc
, 1 + LAG ( cp.end_year
, 1
, dp.initial_year - 1
) OVER ( PARTITION BY cp.uc
, cp.pe_codigo
ORDER BY cp.initial_year
) AS initial_year
, cp.initial_year - 1 AS end_year
, NULL AS credits
, cp.pe_codigo
FROM cred cp
JOIN dis dp ON cp.pe_codigo = dp.pe_codigo
AND cp.end_year >= dp.initial_year
)
SELECT *
FROM prev
WHERE initial_year <= end_year
--
UNION ALL
--
SELECT dc.cod
, cc.id, dc.uc
, GREATEST ( cc.initial_year
, dc.initial_year
) AS initial_year
, NVL (cc.end_year, dc.end_year) AS end_year
, cc.credits, cc.pe_codigo
FROM cred cc
JOIN dis dc ON cc.pe_codigo = dc.pe_codigo
AND COALESCE ( cc.end_year
, dc.end_year
, dc.initial_year
) >= dc.initial_year
--
UNION ALL
--
SELECT df.cod
, NULL AS id
, df.uc
, 1 + MAX (cf.end_year) AS initial_year
, df.end_year
, NULL AS credits
, df.pe_codigo
FROM cred cf
JOIN dis df ON cf.pe_codigo = df.pe_codigo
GROUP BY df.cod
, df.uc
, df.pe_codigo
, df.end_year
HAVING MAX (cf.end_year) < NVL ( df.end_year -- CHANGED
, 9999
)
--
ORDER BY 7 -- pe_codigo
, 4 -- initial_year
;
Tags: Database
Similar Questions
-
To get all records using the CASE function
first_tbl
First_dt second_dt point
1 January 09 item1 1 July 09
April 1 09 item1 1 December 09
1 July 09 31 December 09 item1
December 15 09 10 May 10 item1
March 20, 12 10 August 12 item2
July 31, 12 15 December 12 item2
April 1 09 31 December 09 item2
second_tbl
Start_dt point end_dt flag
August 1 09 1 November 09 item1 null
2 November 09 1st December 09 item1 null
1 December 09 15 December 09 item1 null
December 15 09 31 December 09 item1 null
1 January 10 10 May 10 item2 null
10 May 10 December 31, 10 item2 null
1 January 12 March 15, 12 item2 null
March 20, 12 31 July 12 item2 null
I need o/p so that, if first_dt or second_dt between start_dt and end_dt, I need to make the flag as y (item is the common join) other wise 'n'.
I was able to make the flag go ' but not ' don't
Select A.first_Dt, A.second_Dt, B.Start_Dt, B.End_Dt, A.item, point.
Cases where B.falg is null
Then "n".
Else 'Y '.
End
Of firsttbl A, second_tbl B
Where
A.Item = B.Item
and
((A.first_Dt > =B.Start_Dt et A.first_Dt < = B.End_Dt))
Or
(A.second_Dt > =B.Start_Dt et A.second_Dt < = B.End_Dt)) ;
Please kindly help me to resolve this bug.
Thanks for your help in advance!select f.first_dt,f.second_dt,s.start_dt,s.end_dt, case when first_dt between start_dt and end_dt or second_dt between start_dt and end_dt then 'N' else 'Y' end flag from first_tbl f,second_tbl s where f.item = s.item
-
How replicates all records from one table to another table without using expdp, impdp
Hi I have two database in a database, that I have a table called t1 and another base data, I have the second table .so, my first table have records, that I need to transfer all records second T2 without use of expdp and impdp in every 5 min... what I do
??
The best solution for this scenario is to use Oracle Golden Gate
However, it requires a license, and you must pay for it.
If this is not possible, you can create a job scheduler that uses a link DB in order to reproduce the recordings of the target database, but it will take the entire table to the target database and then INSERT AS SELECT truncate the data of the entire table every time that the job is running (because you can't follow only the records that have been changed or modified).
In addition, read here on the replication of data using materialized views.
-
A group of substrings of a string of search and display all records
Hello
I'm using Oracle 11 g.
I store multiple values in a column, separated by delimiter(#@#). I know it's wrong to databases, but since it is used for many years I can't do much.
I need to perform a search operation where I pass multiple values and I should get all records if any of a value match the stored value. I read about regular expressions for this kind of scenario.
Can someone guide me how to proceed with this? Thanks in advance.
Thank you
Hello
How about this? I tried to simplify your function. I don't know if I got your needs just fine.
CREATE OR REPLACE FUNCTION Search_MultiValue (p_Name IN Varchar2, v_Name in Varchar2, p_delimiter IN VARCHAR2 DEFAULT ',') RETURN Number IS v_delimiter VARCHAR2(3) := '#@#'; BEGIN RETURN CASE WHEN REGEXP_INSTR(v_delimiter || p_Name || v_delimiter , REPLACE(v_delimiter ||v_Name || v_delimiter, p_delimiter, '|') ) > 0 THEN 1 ELSE 0 END; END; /
SELECT search_multivalue('ABC#@#DEF#@#GHI#@#JKL','ABC,GHI') AS res FROM dual;
RESULT:
1
-
Pass fast values in the legend / '- ALL -' filter filter all records
Hello
I have 2 questions for a same graph, so I hope it's OK to add them in a post.
First I created a graph and added three filters in the Select list that are working well, the query is less, problem is that when I change to "- ANY -" I get no data, it eliminated all records as no data is the value of "- ALL -" don't - does anyone know the code to work around this problem?
My graphic request;
--------------------------------------------------------------------------------
Select the link null, data P_MONTH as MONTH, SUM (CALLS) as
from the DATA. MAIN_DATA
THE WAREHOUSE WHERE =: P1_WAREHOUSE
AND ANS_UNANS =: P1_ANS_UNANS
AND PRODUCT =: P1_PRODUCT
P_MONTH GROUP
--------------------------------------------------------------------------------
As I have several queries like the one above for different options on the same chart, I would like that the legend to show what the user chose every time the options change IE;
Something like the bold text in the query to display the values in the legend;
--------------------------------------------------------------------------------
Select the link null, P_MONTH as MONTH, SUM (CALLS) as "P1_WAREHOUSE". "P1_ANS_UNANS" | 'P1_PRODUCT '.
from the DATA. MAIN_DATA
THE WAREHOUSE WHERE =: P1_WAREHOUSE
AND ANS_UNANS =: P1_ANS_UNANS
AND PRODUCT =: P1_PRODUCT
P_MONTH GROUP
--------------------------------------------------------------------------------
Any ideas / suggests?Hello
OK - the page looks ok now.
You had a WHOLE and one entry in the list of categories. I think that ALL were on the list of values at some point definition and Apex had updated it's reference to the LOV was then still which he. I refreshed the LOV page delete this entry, set the return value zero 0 (as all values are numeric - you're dealing with values of salary - you must use 0), added a calculation to the page to set the value of the list to 0 if it is NULL, and erased the SUM() and GROUP BY in the series of the chart (which is not necessary).
Andy
-
How can I pay what columns appear on all records when windows Explorer opens?
original title: Windows Explorer in Vista
How can I configure how windows Explorer opens?
How can I pay what columns appear on all records when windows Explorer opens?
Why vista is so frustrating use?
Hi SuppyLives,
You experience problems in the customization of Windows Explorer?
Method 1: You can run the fixit available in the link below and then check
Diagnose and repair Windows files and folders problems automatically
http://support.Microsoft.com/mats/windows_file_and_folder_diag/en-us?EntryPoint=lightbox
Method 2: You can see the steps provide in the article below
How to modify your folder view settings or customize a folder
http://support.Microsoft.com/kb/812003Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
How to back up and restore the registry in WindowsYou might want to know
Work with files and folders
http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders#section_2Demo: Working with files and folders
http://Windows.Microsoft.com/en-us/Windows-Vista/demo-working-with-files-and-folders -
'shellExecuteEx failed; "170 the requested resource is in use of the code"
I'm unable to install all of the .exe files or even use system restore. Error message read; 'shellExecuteEx failed; 170 the requested resource is in use of the code "." I already ran a series of antivirus and anti software spies scans (NPE, Avast, Mbam, Iobit, Win defender) and found nothing. I can't even udate some of my drivers with full administrator privileges.
Laptop ASUS A53E W7 64-bitHi Shaw,
Thanks for choosing Microsoft Community!
You have reached the right forum. Try to solve this problem together.
If I understand correctly, you are unable to install programs on Windows 7.
Let us try the following methods:
Method 1: Run the following fix - it to repair corrupt windows installation files:
Solve problems with programs that cannot be installed or uninstalled:
http://support.Microsoft.com/mats/program_install_and_uninstall
Method 2: SFC scanner.
SFC scanner. System File Checker (SFC) scan will replace the missing or corrupted system files on your computer.
Use the System File Checker tool to troubleshoot missing or corrupted on Windows Vista or Windows 7 system files:
http://support.Microsoft.com/kb/929833
Method 3: Put the computer in a clean boot state, then try to install it and see if that helps:
A clean boot to test if any element of service or third party application startup is causing this issue.
Reference:
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: when you're done to diagnose, follow step 7 article to start on normal startup.
Hope the helps of information. Reply with more information if you need further assistance, we will be happy to help you.
-
Insert all records from a custom to a staging table.
Hello
Is it possible to insert all records of a cursor in a custom table using plsql instead of open a cursor, and each record in a loop?
Thank you
KK
Use INSERT INTO your_staging_tbl... SELECT... Of your_cuatom_tbl
-
Match any record of all records in OBIEE 11 g
Hello
I have a requirement which, with 4, conditions and should have the conditional formatting.
Open_Flag, empno, month, count_flag are columns that I use.
When Open_Flag = 'n' for any record in the month it will be red in all cases.
Else count (case when count_flag = 'Y', then empno) count (empno) and apply the conditional formatting on the number of result as < 10 then green and > 20 then < 20 yellow and red.
Is there anyway that I can reach the requirement on the side of report? How can I check the Open_flag = 'Y' condition for all records, if not, I have to go for other conditions?
Thank you
Prasanna
Hello
You can use a condition like this
case when County (filter ("empno" Using "open_flag = ' n '") per month) > 0, then count of red one (empno using open_flag = 'Y') end
Thank you
R
-
Web.show_document for all records (%).
Hi all
I m using form 11 GR 2 and call report form with a Web.show_document integrated as follows:
v_show_document: = v_show_document
|| v_connect
|| '+ server ='
|| v_report_server
|| '+ report =' |:parameter.repname
|| '+ destype = CACHE'
|| '+ desformat =' | v_format
|| "' + paramform = no"
|| '+ select1 =' | : mainblock. SELECT1
|| '+ fromdate =' | TO_CHAR(:FROMDATE,'DD-MM-RRRR')
|| '+ todate =' | TO_CHAR(:TODATE,'DD-MM-RRRR');
Web.show_document (v_show_document);
It runs the report properly.
But a problem arises when I change one of the parameters defined in above integrated i.e. select1 = % , for all of the records, i.e.
When I do select1 parameter equivalent to * % (which is intended for all records) *. That's when I put a parameter for all folders = %, it displays following error:
REP-52006: the specified URL % cannot be decoded.
that is when I put the parameter equal to single value, report works well, but when I put the parameter equal to * % (all records) *, it show above error.
I searched the net, someone said that * % * cannot be used for all records, then must be used for this and how?
PL guide me.
Thank you and best regards.
Published by: ocpdev on January 2, 2013 22:52You must add your parameters using SET_REPORT_OBJECT_PROPERTY, only not by adding it to the url, add something like
set_report_object_property(repid, REPORT_OTHER, 'FROMDATE="' ||TO_CHAR(:MAINBLOCK.FROMDATE,'DD-MM-RRRR') || '" TODATE="'TO_CHAR(:MAINBLOCK.TODATE,'DD-MM-RRRR') || '" select1="'||:mainblock.SELECT1|| '"');
-
All records in the report need when I downloaded to Excel
Hello
for all my reports (Adhoc, canned), I need to display 25 records in the page, and if I download the results to excel I want that all the records in excellent.
I use the below configurations in my file.it instanceconfig works very well for the number of records for each page. But if I download the report, it's download only 25 records that are playing on this perticular page.
Someone tell how can I download all records in excellent with 25 records per page?
< Center >
< > 10020000 MaxCells < / MaxCells >
< MaxVisibleColumns > 30 < / MaxVisibleColumns >
< MaxVisiblePages > 1000 < / MaxVisiblePages >
< MaxVisibleRows > 64000 < / MaxVisibleRows >
< MaxVisibleSections > 25 < / MaxVisibleSections >
< DefaultRowsDisplayed > 25 < / DefaultRowsDisplayed >
< DefaultRowsDisplayedInDelivery > 75 < / DefaultRowsDisplayedInDelivery >
< defaultRowsDisplayedInDownload > 64000 < / DefaultRowsDisplayedInDownload >
< DisableAutoPreview > false < / DisableAutoPreview >
< / Center >
< table >
< > 10020000 MaxCells < / MaxCells >
< MaxVisiblePages > 1000 < / MaxVisiblePages >
< MaxVisibleRows > 64000 < / MaxVisibleRows >
< MaxVisibleSections > 25 < / MaxVisibleSections >
< DefaultRowsDisplayed > 25 < / DefaultRowsDisplayed >
< DefaultRowsDisplayedInDelivery > 75 < / DefaultRowsDisplayedInDelivery >
< defaultRowsDisplayedInDownload > 64000 < / DefaultRowsDisplayedInDownload >
< /table >
Published by: user12077461 on August 9, 2011 18:14He shud behave similarly... I mean all the files shud be downloaded. You can try this in any other envn? UAT or DEV?
I'm 100% sure that it shud download all...
-
Retrieve all records in the selected master child multi tables
Hello
I use JDeveloper 11.1.1.4 version and using ADF - BC in my project.
I have a one-to-one simple child master [several] in my project.
In my view page, I display this master child [Ex: EmpVo1-> DeptVo2] in the form of tables.
I have multi-selection enabled for the main table.
My requirement is that, on the multi by selecting the lines in the main tables, I want to get all the child records in my grain of support.
If a master has 3 child records line and another main line has 4 child records and on the selection of several of these two records in the primary table, I should get all the child records in my grain of support.
I need it to implement the cascade delete feature.
Here is the sample code coin
--------------------------------------------
(1) called on selecting rows in the master table
{} public void onRSCGrpSelect (SelectionEvent selectionEvent)
Add the code in the event here...
ADFUtil.invokeEL ("#{bindings.") RscGroupVO1.collectionModel.makeCurrent} «»
new class [] {SelectionEvent.class},
(New Object() {selectionEvent});
RowKeySet rowKeySet = (RowKeySet) tblRSCGrp.getSelectedRowKeys ();
CollectionModel cm = (CollectionModel) tblRSCGrp.getValue ();
for (object facesTreeRowKey: rowKeySet) {}
cm.setRowKey (facesTreeRowKey);
RowData = JUCtrlHierNodeBinding
(JUCtrlHierNodeBinding) cm.getRowData ();
Line = rowData.getRow ();
System.out.println ("\n" +)
row.getAttribute (0) + ":" + row.getAttribute (1) +.
(":" + row.getAttribute (2));
System.out.println ("display the child records");
displayChildRecords (row.getAttribute (0));
}
}
2 private void displayChildRecords (Object rscGrp) {}
ViewObject rscMapVo = getRscMapViewObj();
RowSetIterator rsI = rscMapVo.createRowSetIterator (null);
While (rsI.hasNext ()) {}
Line = rsI.next ();
System.out.println ("\n" +)
row.getAttribute (0) + ":" + row.getAttribute (1) +.
(":" + row.getAttribute (2));
}
rsI.closeRowSetIterator ();
}
But the problem is that he is always giving me the last selected lines child details.
Please suggest the error that I do.
Thank you
PraveenYour problem is to use makecurrent, which should not be used on a multi selection table. Then, if you have a relationship master detail you should have a view link between them. In this case, you can expose a method as you master to get the related child line. Not need to get the VO itself you can use the accessors of child iterator to obtain registration of the child.
public void onRSCGrpSelect(SelectionEvent selectionEvent) { // Add event code here... RowKeySet rowKeySet = (RowKeySet)tblRSCGrp.getSelectedRowKeys(); CollectionModel cm = (CollectionModel)tblRSCGrp.getValue(); for (Object facesTreeRowKey : rowKeySet) { cm.setRowKey(facesTreeRowKey); JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData(); Row row = rowData.getRow(); //cast to the right row class EmpEmpVoRow empRow = (EmpEmpVoRow) row; // now you cann access the child row iterator RowSetIterator it = empRow.getDepVO(); //now you cna iterate over the child rows System.out.println("\n" + row.getAttribute(0) + " :: " + row.getAttribute(1) + " :: " + row.getAttribute(2)); System.out.println("Displaying Child Records"); //use hte child rows here } }
Don't know if the code compiles out of the box (do this on the train :-)
Timo
-
Retriving all records in table
Hello
To retrieve all records from the table, procedure below has been used, but the performance gets only a single record in the output.
Procedure (proc_env) has been wrapped into the package (packg)
This package gets the call from the java environment to extract all records in the table.
Procedure wrapped in packaging
--------------------------------------------------
PROCEDURE proc_test (cursor1 OUT TestCursor)
IS
BEGIN
OPEN FOR Cursor1
SELECT col1,
col2,
COL3
Table_name FROM
END;
procedure called for execution
-----------------------------------------
DECLARE
v_col1 table.col_name%TYPE;
v_col2 table.col_name%TYPE;
v_col3 table.col_name%TYPE;
v_cur packg. TestCursor;
BEGIN
packg.proc_test (v_cur);
EXTRACT the v_cur IN v_col1, v_col2, v_col3;
DBMS_OUTPUT. ENABLE;
Dbms_output.put_line (v_col1 |) ',' || v_col2 | «, » || v_col3);
END;
/
How to retrieve all the records in the table?
What is missing in the code?
RegardingSET SERVEROUTPUT ON DECLARE v_col1 table.col_name%TYPE; v_col2 table.col_name%TYPE; v_col3 table.col_name%TYPE; v_cur packg.TestCursor; BEGIN DBMS_OUTPUT.ENABLE; packg.proc_test(v_cur); LOOP FETCH v_cur INTO v_col1,v_col2,v_col3; EXIT WHEN v_cur%NOTFOUND; DBMS_OUTPUT.put_line(v_col1||','||v_col2||','||v_col3); END LOOP; CLOSE v_cur; END; /
SY.
-
Hello world!
Im making a site with PHP and wonder if I can do this:
First: Let's say the db has 30 records in a table, and I want to change a particular data in all records. How can I do this?
Second: In the same how can way, I delete all the records in this table?
For example:
table 'example '.
collar ID, title, content, description
If I want to ' reset "(changer sa valeur à zéro, par exemple) 'description' value in all records in the table, how can I do this?".
And the second: How can I truncate the whole table? (TRUNCATE = empty all the data inside the table, right?)
All this PHP, phpmyadmin lol no!
Thanks in advance
See you soon!
As I said in the previous answer: use the UPDATE and DELETE MySQL commands. Look at em room for examples. There are a lot of examples out there that will do what you want. Basic examples are:
UPDATE table_name SET column_name = something, column_name_2 = sometingelse
or
DELETE FROM tbl_name where field = something.
-
delete all records at once UCM
Hi all
Let me know how to clean my content server (to delete all records from content server).
Is there a room any or a way to delete all the records at the same time?
Kind regards
VijayA simple way is to use Archiver (Administration > Admin Applets > archive)
Create a new archive (Edit > Add)
Export (Actions > export)
Check the delete the revisions after archive successful.This gives you a conveniently saved content with no content and all content server.
Note that this will only remove the content and rating will give you a blank content server Vanilla so things like custom meta data fields, model components security all will remain.
Tim
Maybe you are looking for
-
Backspace does not work in the address bar after updating to Firefox 10
I've just updated to Firefox 10. The return key will no longer work in the address bar. I have to manually click the "go to". Is there any fixes for this? Thank you!
-
One of my friends asked me to try to format a 8 TB new drive he bought. He needs to FAT32 for his playstation and I think it is either running leopard or snow leopard. I've got El capitan. What he did: Initially the ability to format with MS-DOS was
-
Keep HP with Vista 64 bit programs to clean install Win7
My HP pavilion m9400t was bought a year ago and failed to qualify not free upgrade. In any case, I think I will try to Win 7. I'm gathering that I need to do a clean install. How to save all the extra HP provided software installed with Vista (Har
-
Side-by-side Configuration on Vista Home Premium error
I recently installed an update of composition of Z-Systems Z-maestro music program. After installation, I started getting a "Side-by-side configuration error" when opening both Z-maestro and OpenOffice. The error messages are:For Z-Maestro:"The fol
-
HomeScreen icon does not update correctly
I'm trying to update my HomeScreen iconwith copy the following code: UiApplication.getUiApplication().invokeAndWait(new Runnable() { public void run() { HomeScreen.updateIcon(IMAGE_NEW,0); } }); It generally works well, with one exception: on the Sto