I have a cursor with which I am trying to update an existing table with the primary keys already entered.
What is the proper way of scaning through the cursor, selecting the matching table in the permanent table, and then passing the values from the cursor into the permanent table...
I am having problems with reference syntax I believe....
You would use a select to find the record,in the permanent table, but how do you reference the value of the of the cell being pointed to in the cursor table???
f1 is the name of the column in the cursor, sample_num is the name of the column in the table....
My select is looking like this....my question is, how do I make f1 point to the value in the selected row, referenced column of the cursor, so that I can see that I can compare a sample_num to a sample_num, and then update the permanent table with accurate data....
SELECT * FROM table where sample_num = f1
REPLACE Column2(from table) with f2(from cursor),;
...124 more fields ...
What is the proper way of scaning through the cursor, selecting the matching table in the permanent table, and then passing the values from the cursor into the permanent table...
I am having problems with reference syntax I believe....
You would use a select to find the record,in the permanent table, but how do you reference the value of the of the cell being pointed to in the cursor table???
f1 is the name of the column in the cursor, sample_num is the name of the column in the table....
My select is looking like this....my question is, how do I make f1 point to the value in the selected row, referenced column of the cursor, so that I can see that I can compare a sample_num to a sample_num, and then update the permanent table with accurate data....
SELECT * FROM table where sample_num = f1
REPLACE Column2(from table) with f2(from cursor),;
...124 more fields ...