È chiaro : I'm not referring to the ref column, the tables must not have any…
- User
È chiaro : I'm not referring to the ref column, the tables must not have any relationship. I would like to identify the data to select, with subject_id - nominative, but I should add subject_id to the table. I hope I was clear. I'll post pictures as soon as I can.
- Assistant
It sounds like you're working with database tables and you want to identify specific data using a
subject_idand possibly anominative. However, you do not want to establish direct relationships between the tables. Instead, you'd like to addsubject_idto the table in question to facilitate selection of the data.Here's what you might be looking to do in a step-by-step manner:
-
Add
subject_idto the Table: First, you need to modify the table structure to include asubject_idcolumn. Assuming you're using SQL, it might look something like this:sqlALTER TABLE your_table_name ADD COLUMN subject_id INT;
-
- User
Il testo si capisce I'm not referring to the ref column, the tables must not have any relationship. I would like to identify the data to select, with subject_id - nominative, but I should add subject_id to the table. I hope I was clear. I'll post pictures as soon as I can.
- Assistant
Capisco, sembra che tu voglia aggiungere una colonna
subject_ida una tabella per identificare i dati da selezionare tramitesubject_ide forse una colonnanominative. Ecco come potresti fare questo:-
Aggiungere
subject_idalla tabella: Se la tua tabella non ha ancora una colonnasubject_id, puoi aggiungerla con un comando SQL simile a questo:sqlALTER TABLE nome_tabella ADD COLUMN subject_id INT; -
Popolare la colonna
subject_id: Se disponi già dei valori persubject_id, dovrai popolare questa colonna. Se devi impostare questi valori in base a qualche criterio esistente, potresti fare qualcosa del genere:sql
-