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 - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Passing Variables from AngelScript to C++ -