How dermine if one a DB Table exist or not exist?
That is the question, I need determine if a 'X' DB Table exists, if the table is to run a 'Y' VI, if it not exist, create it and determine its column properties...
If the Table exists go to TRUE and make the next step, if the Table doesn't exist pass false and.
I want is to know how to determine if the table exists or does not exist because if I make tha code in the current image and the Table exists VI showme error, if the Table exists, avoid the code, then continue with the normal process, and I want to avoid this problem.
I have some ideas to solve this the most logical problem is to use the DB tables.VI list but how I can change the result of a Boolean check (this is to select the case in the picture).
Close!
Tags: NI Software
Similar Questions
-
How to fill one shape with another shape, but not of models
Hello
How to fill one shape with another shape, but not of models. Example of this poster
put in a shape of the tree so that it looks like this:
Select your type with a vector path, which is the subject
Object > envelope distort > make with top object.
-
[req] How to check if given oracle table exist or no + c#
Hello
All.
Actually I m creating a program using c# that connects to the database (oracle) and checks the table given 'OPC_GROUP '. If the table does not exist, then it creates the table otherwise it updates all the field with values provided
code
cmd.CommandText = "SELECT tNom tab where tNom ="OPC_GROUP "";
cmd.CommandType = CommandType.Text;
int length is cmd. ExecuteNonQuery());
If (cmd. ExecuteNonQuery()) > 0)
{
MessageBox.Show ("Table exists");
}
on the other
MessageBox.Show ("Table does not exist");
But this return code "TABLE DOESN'T EXIST" even if the table is already created
What I m hurt?
Help, please...
Thnx in advanceTry this...
cmd.CommandText = "SELECT count (*) tab where tNom ="OPC_GROUP "";
cmd.CommandType = CommandType.Text;
String STRID = cmd. ExecuteScalar(). ToString();
If (STRID! = '0')
{
MessageBox.Show ("Table exists");
}
on the other
MessageBox.Show ("Table does not exist");It will be useful,
Greg -
How can we do the invisible table cells (but not content) in DW CS5?
How can you efficiently convert the table cells in invisible ones so that the content within these cells gets stand alone, visibility-wise, please? I looked at so many different orders of Dreamweaver CS-5, but none seem to do the trick, at least do not apparently potentially compromising the existing content somehow. Any thoughts, please?
Change
BORDER CELLPADDING = "0".
TO
BORDER = "0".
See what for you.
Gary
-
How to find if a table exists in a particular backup?
Hi Experts,
How to find if a particular table exists in a specific export dump file? and also is it possible to find the same RMAN backup?
Thank you
Hello
Sorry, above is not possible. My bad,
You can use below,
Impdp directory = 'EXPDP"dumpfile = scott.dmp sqlfile = happy test.sql = metadata_only
and the test.sql contain instructions ddl for tables in the dumpfile.
Tested on 11.2.0.4
-
My xbox account is linked to an account non-existent live windows, how to make a change to an existing one?
Hello
You will need to contact Xbox support http://support.xbox.com/en-us/pages/contact-us.aspx
-
How to add more than one VPN in an existing VPN config
Dear team
I would like to ask your help fast... am not a Cisco guru, but I would like to know if I can get help on how to add a VPN to an existing one. My company already implemented a VPN site to site with a dealer or partners where they are or sharing some data them and make transactions, but the question is, I am now about to add 2 several other company so that I can create another tunnel VPN to each of them without risk of breakage or unplug the old one that is running. How can I do, can someone help me to implement it?
Thanks in advance for your help.
use Cisco 1841 version 7.
1. now I want to know, is who should I ask for an IP access list? Should I create or I have to ask my partner to put it for me so I can put it in.
The access list consists of the IP / subnets on your local network and the Remote LAN. If the source of the ACL will be your local LAN and destination will be the Remote LAN.
access-list 101 extended allow ip
2. is the name given by my partner transfer or I have to create it myself.
The name of game of transformation is locally important. However, it specifies the encryption standards 2 phase so this part will have to be coordinated with the peer.
Crypto ipsec transform-set RIGHT aes - esp esp-sha-hmac
in the foregoing turn together, RIGHT is just a big local name so you can reference it in a card encryption. ESP esp-ae-sha-hmac is the part of encryption that should be agreed between you and your counterpart. According to the image that you posted would use you esp-3des esp-sha-hmac.
3. because I see that the strategy of the first customer VPN (partner) is set on 10 policy should I do also each VPN on 10 policy or the policy number is not serious.
The policy number is a sequence number and is matched in a top to bottom fashion until a match is found. If no match is found, then Phase 1 will not end and establish the tunnel. This is important if you have several peers and some of them use different phase 1 settings. If this is the case, you will need to use different sequence for each policy numbers.
4. I have also seen that we have life time security association 2 phases one to use?
Both are used, and they are both at their default values, you don't need to do any configuration for those.
--
Please do not forget to select a correct answer and rate useful posts
-
How to join two tables if you transpose the rows, columns and rows in one of the table
Hi guys,.
can someone help me please in the write request
I have two tables
Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)
So instead of display 4 rows, I used max(case...) to convert rows to columns
now how to reach it with another table
Requirement:
Database: 11.2.0.2.0
create the table AGENT_PHONE
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
Phone_Number VARCHAR2 (16) not null,
phone_type_code VARCHAR2 (10) not null
)
CREATE TABLEAGENTS
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
NAME VARCHAR2 (40) NOT NULL
)
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');
INSERT INTO VALUES AGENTS
(29709, ARE ', 'OFFICE', 'FLY');
INSERT INTO VALUES AGENTS
(1234, ARE ', 'OFFICE', 'MIKE');
SELECT * FROM AGENT_PHONES
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE ---------------------------------------------------------------------------------------------
29709 RE OFFICE 4805551436 CELL 29709 RE OFFICE 1111111111 PHONE 29709 RE OFFICE 2223334444 OFF 29709 RE OFFICE 5556667788 FAX
SELECT * AGENTS
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME
29709 RE OFFICE ROB 1234 RE OFFICE MIKE
This is so the data we have in both table
Now, I transposed rows to columns in the table of agent phones so I used the following query
SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.
MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE
AGENT_PHONE AP
WHERE AP. AGENT_ID = 29709
GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL OFF FAX PHONE 1 29709 RE OFFICE 4805551436 2223334444 5556667788 1111111111 My question is how this to join the agents table so that my output should be like this...
I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE Currently, I run this query and I get the output as below
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE 1 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 CELL 2 29709 RE OFFICE ROB 29709 RE OFFICE 1111111111 PHONE 3 29709 RE OFFICE ROB 29709 RE OFFICE 2223334444 OFF 4 29709 RE OFFICE ROB 29709 RE OFFICE 5556667788 FAX 5 1234 RE OFFICE MIKE I want id 29709 agent in a line with 1234 agent also id to display
You can rotate your phone number of agent in columns
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 Then you can join to view inline or CTE
with AGENT_PHONE_PIVOT like)
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
)
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE_PIVOT AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE - - - - - - - Is that what you're looking for?
-
How to add the new column in existing table to our desired location?
How to add the new column in existing table to our desired location?
For example, I have to add the new column 'course' before the salary column in the emp table.
I think the best way is to add the column at the end of the table and create a new view with the order of the columns...
Another option...
places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table
Refer
Add column (from table) in the desired position
Example:
CREATE TABLE temp_my_user LIKE)
SELECT * FROM password);
DROP TABLE password;
(Password) CREATE TABLE
userID NUMBER
, first name VARCAHR2 (25)
, middleInitial VARCHAR2 (1)
(, name VARCHAR2 (25));
INSERT INTO password (userID, firstName, lastName)
(SELECT username
first name
lastName
OF temp_my_user);
DROP TABLE temp_user;
-
How to handle the ORA-00942: table or view does not exist
HII All,
I'm trying to delete a table dynamically independently of its existence in a procedure. Sound fine when the table exists, but when the table does not work I am facing following error
I've made use of pragma exception_init and modified my code like belowORA-00942: table or view does not exist
But I am still unable to get rid of him. Pls help me.Create or replace Procedure sp_FSASA_FEEDUPLOAD_process ( p_test_dir in varchar2, p_feed_file_name in varchar2 ) is l_exttable_str varchar2(32000) ; l_log_file constant varchar2(200) := 'logfile_rgh.log'; l_table_doesnt_exist Exception; pragma exception_init(l_table_doesnt_exist,-00492); Begin Begin execute immediate 'drop table FSASA_FEEDUPLOAD_EXT purge' ; Exception when l_table_doesnt_exist then null; End; l_exttable_str := 'Create table FSASA_FEEDUPLOAD_EXT '; l_exttable_str := l_exttable_str||' ( '; l_exttable_str := l_exttable_str||' Category_No varchar2(1), '; l_exttable_str := l_exttable_str||' Financial_Category varchar2(300), '; l_exttable_str := l_exttable_str||' GFCID number, '; l_exttable_str := l_exttable_str||' Balance number(34,14), '; l_exttable_str := l_exttable_str||' Refernce_no varchar2(20), '; l_exttable_str := l_exttable_str||' Account_no varchar2(20), '; l_exttable_str := l_exttable_str||' ce_trans_id varchar2(20) '; l_exttable_str := l_exttable_str||' ) '; l_exttable_str := l_exttable_str||' Organization external '; l_exttable_str := l_exttable_str||' ( '; l_exttable_str := l_exttable_str||' type oracle_loader '; l_exttable_str := l_exttable_str||' default directory '||p_test_dir; l_exttable_str := l_exttable_str||' Access parameters '; l_exttable_str := l_exttable_str||' ( '; l_exttable_str := l_exttable_str||' records delimited by newline '; l_exttable_str := l_exttable_str||'BADFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||'feed.bad '||q'[']' ; l_exttable_str := l_exttable_str||'LOGFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||':feed.log '||q'[']' ; l_exttable_str := l_exttable_str||q'[FIELDS TERMINATED BY X'09']'; l_exttable_str := l_exttable_str||' missing field values are null '; l_exttable_str := l_exttable_str||')location('||q'[']'||p_feed_file_name||q'[']'; l_exttable_str := l_exttable_str||')' ; l_exttable_str := l_exttable_str||' )Reject limit unlimited '; dbg_print(l_log_file,'l_exttable_str : '||l_exttable_str); execute immediate l_exttable_str; End;
(1) I need the drop because I need to immediately create the table with the name of different file and different path.
(2) the last thing I do not do is to check the name of the table in the USER_OBJECTS and then drop.
(3) suggest that create an external table dynamically as a correct approach or not.
(4) up to now, we use utl_file for reading stream file but I am much interested to use the concept of EXTERNAL TABLE.
(5) as the file name and the path is changed, I need to create my external table during execution.
Please suggest me that I can change my file name and the path when runningDon't drop and re-create it, just create once as DDL not in code and then change it to point to a new file.
-
How to join this per_rating_levels this table with query table.
Dear all,
Guide how 2 join me per_rating_levels this table with query because, I want 2 see the per_rating_levels.name against all employees.
When I join this table with query it shows several recording/cortion against this record.
Query:
SELECT
PAPF.full_name employee_name,
papf1.full_name supervisor_name,
WOMEN'S WEAR. Employee_number,
hr_general.decode_job (PAAF.job_id) job_name,
Department of hr_general.decode_organization (PAAF.organization_id),
PC.Name, PCE.Comments EmployeeComments,
(by selecting pce1.comments in per_competence_elements pce1
where
PCE.assessment_id = pce1.assessment_id
AND pce.competence_id = pce1.competence_id
AND pce1.object_id = pce.object_id) ManagerComments;
--(sélectionnez rtl.name dans rtl où les pc.) RATING_SCALE_ID = rtl. Name RATING_SCALE_ID)
OF per_all_people_f women's wear.
per_all_people_f papf1,
per_all_assignments_f ADP,
PA per_appraisals,
pat per_appraisal_templates,
per_assessments not,
per_competence_elements pce,
per_competences pc
WHERE papf.person_id = paaf.person_id
AND paaf.supervisor_id = papf1.person_id
AND paaf.primary_flag = 'Y '.
AND pa.appraisee_person_id = papf.person_id
AND pa.appraisal_template_id = pat.appraisal_template_id
AND pa.appraisal_id = pas.appraisal_id
AND pat.assessment_type_id = pas.assessment_type_id
AND pas.assessment_id = pce.assessment_id
AND pce.object_id = papf.person_id
AND pce.competence_id = pc.competence_id
AND trunc (sysdate) BETWEEN papf.effective_start_date AND papf.effective_end_date
AND trunc (sysdate) BETWEEN papf1.effective_start_date AND papf1.effective_end_date
AND trunc (sysdate) BETWEEN paaf.effective_start_date AND paaf.effective_end_date
- AND papf.employee_number =: p_employee_number
- AND pa.appraisal_date =: p_appraisal_date
- AND papf.business_group_id =: p_bg_id
order of papf.employee_number
Concerninguser10941925 wrote:
Dear all,Guide how 2 join me per_rating_levels this table with query because, I want 2 see the per_rating_levels.name against all employees.
When I join this table with query it shows several recording/cortion against this record.'2' in your question means "to"? If so please do not use text instant message in this forum.
Now I suppose that PRE_RATING_LEVELS is a table in your application. And you are trying to include this table in an existing query. But in doing so, you have found the Cartesian product, correct?
In fact, how do you think someone a public forum without any knowledge of your table and data structure could help you?
Lets see, here's your query. I formatted.
select papf.full_name employee_name , papf1.full_name supervisor_name , papf.employee_number employee_number , hr_general.decode_job(paaf.job_id) job_name , hr_general.decode_organization(paaf.organization_id) department , pc.name name , pce.comments employeecomments , ( select pce1.comments from per_competence_elements pce1 where pce.assessment_id = pce1.assessment_id and pce.competence_id = pce1.competence_id and pce1.object_id = pce.object_id ) managercomments from per_all_people_f papf , per_all_people_f papf1 , per_all_assignments_f paaf , per_appraisals pa , per_appraisal_templates pat , per_assessments pas , per_competence_elements pce , per_competences pc where papf.person_id = paaf.person_id and paaf.supervisor_id = papf1.person_id and paaf.primary_flag = 'Y' and pa.appraisee_person_id = papf.person_id and pa.appraisal_template_id = pat.appraisal_template_id and pa.appraisal_id = pas.appraisal_id and pat.assessment_type_id = pas.assessment_type_id and pas.assessment_id = pce.assessment_id and pce.object_id = papf.person_id and pce.competence_id = pc.competence_id and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date and trunc(sysdate) between papf1.effective_start_date and papf1.effective_end_date and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date order by papf.employee_number
Now, you want to add the PRE_RATING_LEVELS in the list so that you can use the column NAME.
First thing you need to do is to determine the relationship between PRE_RATING_LEVELS and other tables. A relationship can be
1. one on one
2 one-to-many
3. - to-severalSo when you tried to join, your state of health has resulted in 2nd or 3rd type of relationship. If you arrive with someone who knows the business and the data and find the table that could uniquely identify a line of PRE_RATING_LEVELS.
-
How to set one of my pictures as a screen saver
I can't understand how to set one of my own photos as the screensaver on my iMac... How do I do it please?
System Preferences > desktop and screen saver > screen saver > select one of the modes that uses a table > screen saver Options > choose a folder...
Made in regards to the BONES of the Mavericks.
Clearly, it will work best when you have more than one image.
I guess you mean screensaver and no paper painted (preferably same group)?
-
How can I write in a table cell (row, column appear) in a databae?
How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?
When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.
I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.
-
How to add the file to the existing catalog
Hello:
How to add a new file already existing catalogue? If I using the regular method "-> import library", the old files will disappear.
Thank you
Images to be imported into Lightroom. When you go through the import process, when it has finished, it will seek you images of the previous import (import you just made). It's normal. If you look at the different sections on the left side of the library module, you'll see that "Previous import" is one of the sections. You will also notice that there is another section called "files". If you choose this section, you will be able to see the other folders that you have imported.
-
Monthly newsletters. How to set one up?
Hello everyone. I know how to design an email template. But how do install you a monthly newsletter? What should I know? How are these subscription lists work?
I am trying to set up a monthly newsletter and I wish that all of the information needed to make one.
You thank all in advance.
> I don't know how to create a dynamic site, but it's not the same.
It is basically the same that more dynamic sites, with which I have worked. My point is that if you're competent enough to build yourself, you would have worked on the basics of what you ask the subject.
> 1. How a designer / developer offer a newsletter on a client?
>1a. If a customer wants to use hi's own delivery method (delivery service) while the designer is supposed to do? Just the model newsletter?
Yes.
1 b and how will do the subscription list to work? He put the databese on clients Server?
If you build your own solution, then Yes, the database goes on the customer's server.
2. How do you do this database online to make your lists of subcription to work. How "call" them by making the newsletter template? Calling them I mean code that I'm supposed to use to call an external file/database in my newsletter.
You need to clarify this - what you want to store in the database? If the info of the subscription, then you just a few simple tables to store the information of the Subscriber. You would not "call" cela by making the model - use you it when sending the newsletter.
If you plan on "insertion" the contents of the database in your newsletter, then this is exactly the same as any other dynamic database driven site. You fill in the code html using script on the server side and then send out.
(ps: I don't know how to work a list of subscriptions.) What kind of file is it? Where to put it?)
A list of subscriptions is a table or tables in a database.
3 when I do the email templates that I have to deliver the html code and then the client it uses in its mailing software. When I do a newsletter which files should I provide to the customer?
If you build a complete solution, you need to deliver and install all the parts - html templates, css, database, script files, etc.
Monthly newsletters. How to set one up?
Maybe you are looking for
-
DVD multi burner will work - Satellite M30X
My laptop is Satellite M30x. My drive is a multi recorder, but my drive does not work properly. I can not burn DVD or CD, and I can't play some DVD. But I am able to read DVDs and CDs more. I tried upgrading the firmware from the driver download page
-
Someone hacked into my Hotmail account and now I can't access my e-mail address.
original title: my hotmail has blocked. Hello my hotmail account has recently blocked due to someone me hacking and sending spam from my account. the account is old enough, and with the current information, I account it says that I don't know enough
-
Cannot update Windows Vista, with the update functionality.
-
Cisco - DB replication state emergency responder
All, Hope you have a great week. I'm new to the REB (I've worked in Europe) so I wanted to check the status of replication db but seems little different than output CUCM CLI. I kindly ask you to share your findings, what points I need a glance on out
-
C6180 Wireless Setup Assistant does not work
I have a Toshiba Satellite and a HP Pavilion PC, both running Vista. I replaced the wireless router with a new Cisco Valet M10 - all computers run wireless successfully with the new router. My printer says "offline" in the control panel. I restart