Hi
I have the next code:
cmdSelect = New SqlCommand( "Select au_id, au_lname, phone From Authors Order by au_lname", conPubs ).
I want to select and view a specific au_lname, let's say 'Green'.
What do i have to write? I tried the next sentence:
cmdSelect = New SqlCommand( "Select au_id, au_lname, phone From Authors Order by au_lname WHERE au_lname ="'Green', conPubs )
There is an error:')' expected.
Someone can help me?
Thank's.
I have the next code:
cmdSelect = New SqlCommand( "Select au_id, au_lname, phone From Authors Order by au_lname", conPubs ).
I want to select and view a specific au_lname, let's say 'Green'.
What do i have to write? I tried the next sentence:
cmdSelect = New SqlCommand( "Select au_id, au_lname, phone From Authors Order by au_lname WHERE au_lname ="'Green', conPubs )
There is an error:')' expected.
Someone can help me?
Thank's.