c# - INNER JOIN Syntax -
hows inner join syntax work? i'm new sql , dont understand how inner join works
querystring = @"select * wgcdoccab serie ='1' , tipodoc ='fss' , contribuinte ='999999990' , numdoc = inner join wgcnumeradores on wgcdoccab.numdoc = wgcnumerador.numero";
can tell me whats wrong, im sure syntax, im using c# visual studio 2013 , mysql
inner join used when pulling related data out of more 1 table. pointed out above, inner join comes before clause. try this:
querystring = @"select * wgcdoccab inner join wgcnumeradores on wgcdoccab.numdoc = wgcnumerador.numero serie ='1' , tipodoc ='fss' , contribuinte ='999999990'";
here explanation inner join:
https://technet.microsoft.com/en-us/library/ms190014(v=sql.105).aspx
Comments
Post a Comment