C
C
Caspergreen2016-10-03 07:53:47
MySQL
Caspergreen, 2016-10-03 07:53:47

Yii 1, how to display only one value from the base in TbGridView?

There is a table with the structure
id,
room_id, (class id)
name (item name)
it is necessary that only one item for all classes be displayed (i.e., in the database there is a record of the form: geography - 1st class, geography - 2nd class) , the output is just a subject for all classes))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Agarkov, 2016-10-13
@id01

SELECT "география" FROM название_таблицы

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question