Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mysql> source /home/mysqlscript;
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'number(7),
name varchar2(20),
assigned_est_id number(7),
primar
mysql>
"/home/mysqlscript":
Code:
create table establishment
(id number(7),
name varchar2(20),
assigned_est_id number(7),
primary key(id),
foreign key (assigned_est_id) references establishment(id));
Can anyone help me?
Don't tell me to read tutorials! I have, but hadn't found an answer.
Thanks.
Actually I have a task to construct a database.
I am at a loss about how I will "port" it to Oracle server...
I'm sure to have errors when "correcting" MySQL syntax for Oracle...
select id, name, title
from k_emp
where id in (1,2,3);
select k_emp_id
from k_job_mtr
where k_dep_id=1;
select id, name, title
from k_emp
where id in
(select k_emp_id
from k_job_mtr
where k_dep_id=1);
And here's the output:
Code:
mysql> source /home/1;
+----+------------------+------------------------+
| id | name | title |
+----+------------------+------------------------+
| 1 | Vasily Fachester | Professor Dyady Vasya |
| 2 | Arcady Hohtick | Physician Dyadya Stepa |
| 3 | Vasya Hotdog | Cleaner Tyotya Vasya |
+----+------------------+------------------------+
3 rows in set (0.00 sec)
+----------+
| k_emp_id |
+----------+
| 1 |
| 2 |
| 3 |
+----------+
3 rows in set (0.00 sec)
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select k_emp_id
from k_job_mtr
where k_dep_id=1)' at line 4
I don't understand why subquery cannot be executed. Separately they work, when together - they don't.
[line 4, AFAIK, means the fourth line of the last query with subquery]
Can you help me?
Thanks.
sorry to pull out old stuff, since I'm new to board, I can't post any new topic until I make 5 post,& hopefully this a simple question, I'm trying to run a sever so I installed (Apache2, PHP4 & mysql) apache & php seems to working great, but mysql I have some trouble with it.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
I tried to change the password but it is not working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.