mysql - Show primary key column in table -


i have following query

    use  recipesexample;      select recipes.recipetitle      recipes 

the create table is:

create table recipes (         recipeid int not null default 0 ,         recipetitle nvarchar (255) null ,         recipeclassid smallint null default 0 ,         preparation text null ,         notes text null );  alter table recipes          add constraint recipes_pk primary key          (                 recipeid         ); 

which outputs:

enter image description here

how edit query can view primary key? , foreign key recipeclassid.

simply add required columns in query comma separated,

select recipes.recipeid,recipes.recipeclassid,recipes.recipetitle recipes 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -