Data Conversion

Asked

Viewed 58 times

0

I am making a program and I would like to know how to save a field that contains only characters, but send to the bank only your code? I am using two tables to save the data and the field I want to save is the foreign key that would be the code.I am doing the program in visual studio and using sql Developer(Oracle) as a database. Below are the two tables, I’m saving in the Employee table, and cod_position is my foreign key. What I want to do is save in the form the name of the position, for example (Manager), but send the code of this field to the bank. I made an Insert in the bank with the positions and I also made a combo charge to bring the positions to that field position.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • 1

    Enter your code and give us all the details necessary to help you.

  • 2

    Young man, don’t use the tag visual-studio if your problem is unrelated to the IDE. See this question to understand the difference between IDE, programming language and compilers. Other than that, SQL Developer does not seem to me the name of a database, I may be mistaken, but I think the database you are using is Oracle.

  • When programming the data Binding of the controls in the form you can choose which properties to use for display/editing and which to use for identification of the displayed item. The solution to this question is a kind of tutorial of C# Winforms/Webforms/ASP.NetMVC... or any other tool you are using. I think the ideal thing for you is to look for tutorial of the tool you are using to learn the basic concepts and resources, and then ask more specific questions.

  • You who show a form in the title name, but save in the table Work Cod_position, if that is it, I see no problem this more than correct, what you need to do is a JOIN with your tables to load in your form the TITLE NAME and not the Code.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.