![]() |
Dozens of questions which I cannot find. v_v
Heres some questions which I cannot find online, cause it's all about crap PHP Tutorials with MySQL. Now
How would I insert two querys at once? in the same variable: PHP Code:
PHP Code:
PHP Code:
That's all the questions I have for now, I might ask some more later.. HALP! |
If someone helps me out, they get a cookie! :D
|
We need a MySQL Guru. -_-
|
Surely you can wait 10min..... Its 24/7 staff you seem to want.
1. You cant execute more then one query though mysql_query, here some code I wrote that can enable you to do this in a different way http://www.talkphp.com/absolute-begi...l-queries.html 2. I dont get what you are trying to do, why not select both via aliasing? // I want t1's users to be t2's users $query = " SELECT t1.users AS t1_users,t2.users AS t2_users FROM t1,t2; 3. Modify an existing MySQL column - Tech-Recipes.com A quick google serach could have answered the second two |
Quote:
SQL Code:
Please be patient when asking questions; even though some of us are on the forums very often, we're not here to drop everything and respond immediately to new posts. Even if that were the case, it does indeed take a few minutes to draft a post. *!* |
Quote:
|
I think I figured out that Inner join can be used to combine data from other tables to make one table :D
|
I'm wondering if I have to use queries for listing rows in a table, and updating, deleting, or inserting into tables. -_- I said I'm a newbie at MySQL. :/
|
I believe...if I am wrong, someone correct me, please..to insert data from a SELECT query into another table do something like the following:
SQL Code:
By editing columns in a table, to what are you referring? Do you wish to change the data type or just the data in a specific column/field? |
Quote:
|
Sorry for all the questions, but I have one more. Were you planning on adding or removing a column for each news story? Am I misunderstanding you? Are you actually trying to add or delete rows?
TRUNCATE will clean the table out and leave the structure intact. I don't think that is what you want to do... To delete a row, here is a small example(assuming you had the id of the story): SQL Code:
Changing data in a column requires you to do an UPDATE query. example: SQL Code:
|
Quote:
Code:
SELECT name FROM cia WHERE population > (SELECT population FROM cia WHERE name='United States'); |
| All times are GMT. The time now is 02:48 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0