I'm a database newbie designing a database. I'll use SO as an example because it's easier to ask it on something that you can see already, but it's not the same, it will just help me understand the right approach.
As you can see, there are many questions here and each can have many answers.
How should I store the answers in a table?
S...
I'm trying to learn good relational database design (using mysql and php if that makes any difference). I've already done some database work, so I'm not totally clueless, but I suspect that my solutions may not have adhered to best practices for efficient searching, optimization, etc.
Can someone suggest a good set of videos on the top...
There's an API for Twisted apps to talk to a database in a scalable way: twisted.enterprise.dbapi
The confusing thing is, which database to pick?
The database will have a Twisted app that is mostly making inserts and updates and relatively few selects, and then other strictly-read-only clients that are accessing the database directly m...
Hi All,
I am loving the new world that is C#, I've come to a point with my toy programs where I want to start writing some unit tests.
My code currently uses a database via a DatabaseDataContext object (*.dbml file), what's the best way to create a mock for this object? Given how easy it is to generate the database LINQ -> SQL code and...
Hi, I'm working with PHP PDO and I have the following problem:
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /var/www/site/classes/enterprise.php on line 63
Here is my code:
public function getCompaniesByCity(City $city, $options = null) {...
Hi,
I fill a crystal report with data from my .Net Application.
Like this:
rptClass.SetDataSource(myDataSet);
My report has a stored procedure as data source.
First I would like to know why I have to set the login and parameter data in my report if I provide it with data by myself. I mean the report doesn't need that. It doesn't need...
Dear,
May we have rights to update the android database table schema such like People, Organization,Calendar,Events. i want to add triggers on the update,delete and insert of the above mention tables.
Thanks.
...
Is there a "best" or more popular database for standalone Java app?
I'm currently writing by hand, but I would like to know what is commonly done, if there is something that is commonly done.
update: talking about small app (may grow, but its small for now)
...
Hi friends,
I spend few hours at google, but cant find :/
is it possible to get a random data from database with Drupal 6?
appreciate helps!! thanks!
...
Hi all,
I have a hosting/MySQL configuration issue that I hope someone can help with.
I currently have a server running MySQL 4.1 along with PHP 4.4.7 and Apache 2.2. I think the most important factor given my current problem is the MySQL install.
This server has around 150 databases on it, and as far as I can see I’m running into is...
where i need to select char(253) and get ANSI character in Arabic collation dosent work
...
I want that its name would be the page address. For example, if page has heading "Some Page", than its address should be http://somesite/some_page/.
"some_page"-name generated by system automatically. "some_page" - is the unique identifier of page. The problem in that the user in the future can enter a name which already exists that will...
Hey guys,
I have 3 tables with a column in each which relates to one ID per row. I am looking for an sql statement query which will check all 3 tables for any rows in the last 24 hours (86400 seconds) i have stored timestamps in each tables under column time.
After I get this query I will be able to do the next step which is to then c...
If you have to retrieve data from a database and bring this dataset to the client, and then allow the user to manipulate the data in various ways before updating the database again, what is a good class design for this if the data tables will not have a 1:1 relationship with the class objects?
Here are some I came up with:
Just manipu...
Hi Everyone,
I have three models that I want to interact with each other.
Kase, Person and and Company.
I have (I think) setup the relationships correctly:
class Kase < ActiveRecord::Base
#HAS ONE COMPANY
has_one :company
#HAS MANY PERSONS
has_many :persons
class Person < ActiveRecord::Base
belongs_to :company
class Company < Act...
I need to port this following from Oracle syntax to Postgresql.
Both FLO_END_DT and FLO_START_DATE are of type DATE in Oracle, and TIMESTAMP WITHOUT TIME ZONE in Postgresql:
SELECT TRUNC( TO_CHAR(ROUND(( FL.FLO_END_DT- FL.FLO_START_DT)* 24), '9999D99'), 2)
FROM FLOWS FL
I am not familiar enough with Oracle to know what it is tryin...
What is the upper limit of records for MySQL database table. I'm wondering about autoincrement field. What would happen if I add milions of records? How to handle this kind of situations?
Thx!
...
I'm creating a web application (in Django), which needs to allow users to upload files (specifically images, which are later displayed for other users). I'm trying to understand the best way to store these uploaded files.
From related questions, I saw some people suggested giving the file a server-generated unqiue id, then creating a DB...
MySQL has something like this:
INSERT INTO visits (ip, hits)
VALUES ('127.0.0.1', 1)
ON DUPLICATE KEY UPDATE hits = hits + 1;
As far as I'm know this feature doesn't exist in SQLite, what I want to know is if there is any way to archive the same effect without having to execute two queries. Also, if this is not possible, what do you p...
i need to get started with accessing a database with c#
please give me the simplest example possible!!
perhaps a mysql database would be the simplest example?
please show me how to connect to a mysql database and get data
...