relational-database
Data model or database system to use for large data tracker with custom user tags and fields
I want to create an application that allows keeping track of items and associated fields. For example, I may want to keep track of how much coffee I have drunk, and so I would create a coffee entry, a[详细]
2023-03-21 03:13 分类:问答Prepared statement with a relational database
I could use some help on how to change this query $query = mysql_query(\"SELECT M.msg_id, M.uid_fk, M.message, M.created, U.username FROM messages M, users UWHERE M.uid_fk=U.uid and M.uid_fk=\'$uid\'[详细]
2023-03-20 20:40 分类:问答How to set up a typical users HABTM roles relationship
I\'m quite new to this an开发者_如何学God I\'m using cancan + devise for my user auth. However I\'m not really sure what it means to set up a typical users HABTM roles relationship nor do I really und[详细]
2023-03-20 17:23 分类:问答Creating a follow button? How to maximize efficiency?
I\'m using django.I want to create a follow button that once clicked will include the current user in the group of开发者_C百科 followers and then display the number of followers.There is a unfollow bu[详细]
2023-03-19 15:05 分类:问答Is it necessary that the Foreign key of some table should be the candidate key of the same table?
Foreign key should necessarily be a candidate key for a table (sa开发者_运维技巧y table1)? I know that Foreign key references primary key of some other table (say table2). But for the table1, is it ne[详细]
2023-03-18 14:43 分类:问答Zend Framework Relational Database
I\'m trying to figure out how to program referencial mapping with Zend Framework 1.11.x.I have 4 tables: person, cities, states, and countries.Each person has a city_id, state_id, and country_id assoc[详细]
2023-03-18 10:37 分类:问答Should User and Address be in separate tables?
Currently my users table has the below fields Username Password Name Surname City Address Country Region TelNo[详细]
2023-03-17 18:37 分类:问答DB integrity, Users and SSO
In an existing DB, we have several tables associated with a central USERS table. Tables such as list of old password or User\'s preferences are associated based on USER_ID column in the main USERS tab[详细]
2023-03-17 08:38 分类:问答finding records with join on multiple relation tables
I have 3 tables. Tour Table (optional) Tour Tag Relation Table (optional_tag_rel) Tour Theme Relation Table (optional_theme_rel)[详细]
2023-03-16 14:00 分类:问答How to build relations to Multiple IDs separated by comma in Yii
I was creating a form. Certian fields of the form uses checkbox and may return multiple choices and I have to store all of those IDs to a single field separated by a comma or semicolon.[详细]
2023-03-16 01:03 分类:问答