Click here to Skip to main content
15,887,027 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: sql query syntax in .net Pin
Dave Kreskowiak12-Feb-14 4:30
mveDave Kreskowiak12-Feb-14 4:30 
AnswerRe: sql query syntax in .net Pin
thatraja12-Feb-14 4:31
professionalthatraja12-Feb-14 4:31 
AnswerRe: sql query syntax in .net Pin
Richard Deeming12-Feb-14 5:22
mveRichard Deeming12-Feb-14 5:22 
AnswerRe: sql query syntax in .net Pin
Eddy Vluggen12-Feb-14 6:56
professionalEddy Vluggen12-Feb-14 6:56 
GeneralRe: sql query syntax in .net Pin
Member 1050621512-Feb-14 22:01
Member 1050621512-Feb-14 22:01 
AnswerRe: sql query syntax in .net Pin
Eddy Vluggen12-Feb-14 22:28
professionalEddy Vluggen12-Feb-14 22:28 
GeneralRe: sql query syntax in .net Pin
Member 1050621512-Feb-14 22:35
Member 1050621512-Feb-14 22:35 
GeneralRe: sql query syntax in .net Pin
Eddy Vluggen13-Feb-14 0:31
professionalEddy Vluggen13-Feb-14 0:31 
You can't use the "where" clause in an insert. The computer will simply not accept it, regardless of your intention. (Yes, it does accept it in a subselect, but that is not the case here)

CAR
carId

PERSON
personId

CAROWNERS
carId
personId

Or, with data;

CAR
12
14
167

PERSON
A
B
C

CAROWNERS
12, A
167, A
14, B

If you want to register a car to a person, insert a record into "CAROWNERS" containing both Id's.

Member 10506215 wrote:
so i thought if i added the second car, and i put a condition
That's not how it works; commands have a specific syntax, you don't make one up and assume it works.

Get a book on SQL. Get it today, before I see a question on joining those records back together.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: sql query syntax in .net Pin
Member 1050621513-Feb-14 1:39
Member 1050621513-Feb-14 1:39 
GeneralRe: sql query syntax in .net Pin
Eddy Vluggen13-Feb-14 2:59
professionalEddy Vluggen13-Feb-14 2:59 
GeneralRe: sql query syntax in .net Pin
Member 1050621513-Feb-14 3:48
Member 1050621513-Feb-14 3:48 
GeneralRe: sql query syntax in .net Pin
Eddy Vluggen13-Feb-14 4:59
professionalEddy Vluggen13-Feb-14 4:59 
QuestionUploading Data from MySql to MS Project using .net C# Pin
Badari Narayan11-Feb-14 21:22
Badari Narayan11-Feb-14 21:22 
AnswerRe: Uploading Data from MySql to MS Project using .net C# Pin
Richard MacCutchan11-Feb-14 21:25
mveRichard MacCutchan11-Feb-14 21:25 
Questionserialport timeout c# .net 4 client profile Pin
openLG11-Feb-14 1:40
openLG11-Feb-14 1:40 
QuestionRe: serialport timeout c# .net 4 client profile Pin
Eddy Vluggen11-Feb-14 3:11
professionalEddy Vluggen11-Feb-14 3:11 
SuggestionRe: serialport timeout c# .net 4 client profile Pin
Richard MacCutchan11-Feb-14 4:43
mveRichard MacCutchan11-Feb-14 4:43 
AnswerRe: serialport timeout c# .net 4 client profile Pin
Gerry Schmitz12-Feb-14 9:03
mveGerry Schmitz12-Feb-14 9:03 
QuestionHow to call a Phython Script from .Net Pin
Kandepu Rajesh10-Feb-14 12:11
Kandepu Rajesh10-Feb-14 12:11 
SuggestionRe: How to call a Phython Script from .Net Pin
Richard MacCutchan10-Feb-14 21:00
mveRichard MacCutchan10-Feb-14 21:00 
AnswerRe: How to call a Phython Script from .Net Pin
Bernhard Hiller10-Feb-14 21:15
Bernhard Hiller10-Feb-14 21:15 
GeneralRe: How to call a Phython Script from .Net Pin
Kandepu Rajesh10-Feb-14 21:18
Kandepu Rajesh10-Feb-14 21:18 
GeneralRe: How to call a Phython Script from .Net Pin
Pete O'Hanlon10-Feb-14 23:52
mvePete O'Hanlon10-Feb-14 23:52 
AnswerRe: How to call a Phython Script from .Net Pin
Kornfeld Eliyahu Peter10-Feb-14 23:29
professionalKornfeld Eliyahu Peter10-Feb-14 23:29 
QuestionCustom Control Visual Basic .Net Pin
JM768-Feb-14 2:01
JM768-Feb-14 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.