![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2007
Posts: 2,695
|
Question for those who have database querying knowledge
Hi
Let say you know how to apply queries to a database and you land yourself a job. Now your job is to query the DB, but without knowing what it looks like and all the relationships between the tables how are you suppose to query it? Is the company suppose to give you documentation showing in graphical form what the tables look like and how they are linked? Or can you run a query that gives you all the information? Thanks B
__________________
best cbd oil uk - Hit me up on ICQ 400607632 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
congrats to the winners
Industry Role:
Join Date: Nov 2001
Location: Echo Beach
Posts: 10,891
|
is there a user interface ...?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2007
Posts: 2,695
|
No idea.... have not taken up the job yet just doing research into the potential job
1. Lets say you have one 2. Lets say you dont have one Thanks
__________________
best cbd oil uk - Hit me up on ICQ 400607632 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Registered User
Join Date: Nov 2009
Posts: 62
|
Quote:
Look for the views, that could be kind of graph about realtionships. If there is no documentation they are in a deep trouble. In that case you will have to dive into website code and find what is calling what. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jan 2007
Posts: 2,695
|
Quote:
Thanks B
__________________
best cbd oil uk - Hit me up on ICQ 400607632 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,040
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Oct 2013
Location: Canada
Posts: 870
|
This?
http://onewebsql.com/blog/list-all-tables SQL Server or SqLite aren't included in these examples, but there's usually a way to do it whatever the database is. There's usually also a way to get database relationships. As mentioned, a GUI is usually preferred as it may also be able to show them well visually. (*) These examples haven't been tested and are only to show it's possible. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Registered User
Join Date: Nov 2009
Posts: 62
|
Again, if it is MySql, that doesn't support foreign keys, you don't link the tables anywhere except your diagrams and queries. If there is saved queries (known as views) that can help.
Without that (diagrams or at least saved queries) that could be nightmare, in that case only the code (php or what is used) can show you possible relationships. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jan 2007
Posts: 2,695
|
Quote:
what do you mean except in diagrams
__________________
best cbd oil uk - Hit me up on ICQ 400607632 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Jan 2007
Posts: 2,695
|
Quote:
http://dev.mysql.com/doc/refman/5.1/...eign-keys.html
__________________
best cbd oil uk - Hit me up on ICQ 400607632 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
You mean this?
Code:
barry:~$ mysql -u****** -p******* Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1016 Server version: 5.*************************** Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | models | | mysql | | test | +--------------------+ 11 rows in set (0.00 sec) mysql> use models; mysql> show tables; +------------------+ | Tables_in_models | +------------------+ | modelData | +------------------+ 1 row in set (0.00 sec) mysql> SELECT TABLE_NAME, ENGINE FROM information_schema.TABLES where TABLE_SCHEMA = 'models'; +-------------+--------+ | TABLE_NAME | ENGINE | +-------------+--------+ | modelData | INNODB | +-------------+--------+ 1 row in set (0.06 sec) Quote:
Code:
mysql> ALTER TABLE table_name ENGINE = INNODB; Just make it work :P |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
for anyone who has been around a block a few times, 99% of the time it's pretty obvious what the relationships are ... and if that fails, you can always look at the queries....
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
describe database;
describe table; will do most of what you need, however there are a lot of places to "hide" things in mysql(stored procedures, as an example), which is why documentation should be kept. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
|
what ^^ said.
__________________
SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean
|
![]() |
![]() ![]() ![]() ![]() ![]() |