Hello to everyone !!!

I have a problem with query in sql.
Look in the photo and you will find details about my problem.

Why i cant add a new record.
When i will add ID, Emri and Cmimi i want to show them automatically...

Does any one have idea about it ???

Recommended Answers

All 3 Replies

You need to do an INSERT query to add data. You gave us a screenshot of a SELECT query. Since you have two tables with a relationship, when you go to insert a row in both tables with the same ID.

I write the same code in Acces and there it works ok but here in C# it doesnt work... In acces after i make that query then i just have to put the ID, Emri and Cmimi are shown automatically.
Now do you understand me ???

Here when i put the ID , Emri and Cmimi are shown automatically

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.