Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am trying to convert CREATE UNIQUE INDEX from DB2 to mysql . I just want to know how to use INCLUDE in MySQL queries .I have searched in MySQL document and i din;t find anything .
This is the sample DB2 query :
CREATE UNIQUE INDEX SAMPLE ON MY_TABLE(ID)
INCLUDE(FIELD_1, FIELD_2, FIELD_3, FIELD_4) COMPRESS NO ALLOW REVERSE SCANS#
and also i want to know COMPRESS NO ALLOW REVERSE SCANS is allowed in MySQL ? Any help or suggestion ?
The answer is very simple: none of these options are supported in mysql and there is no equivalent option either. Db2 and mysql are two different products, they work differently.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Help what is the correct answer for this?? There is no semi-colon after the USE Fruit. So I'm thinking its A.
But why specify which database they wanted it in?
If it was you what would you choose?
Normally you USE your database once on connecting, if that, and from there all operations are presumed to be within that database.
You should not be putting in arbitrary USE statements in your queries.
For whatever reason, everything after the database argument to USE seems to be ignored:
USE x THIS IS NOT VALID SQL;
-- Database changed
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have two databases one in PostgreSQL and other in MySQL. What I want is to get data from both databases and create a view and then iterate it on front-end.
Is it possible?.
The smartest thing to do would be to create two connections, one to each database, and handle it that way.
If you need to join the tables, you could consider using a mysql_fdw foreign table in PostgreSQL and join the tables in PostgreSQL.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I had a table named table1 and have a three column.. column1, column2,column3..
I want to view the value of my columns in table using VIEW statement not SELECT is it possible?
Thank in advance#
No. View is a SQL database concept. You will have to use SELECT... to create a query, which is essentially the same thing. MSAccess has no concept of Views, it uses Queries.
A view is an SQL query that has been given a name and stored in the database. That is exactly what the Access queries are.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have several databases represents the companies we work.
In every database there are fields which we work on.
And in the fields area, there are field infos and our engineer who worked at that field.
I need to search all databases and filter with engineer names, to get a list of fields he worked.
I hope I could explain.
Any simple solution?
Nope. You're going to have to manually write queries to search each table in each database. The whole idea of database schemas and tables is that they are distinct wrappers for data, which can't be implicitly joined.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am looking for suggestions for the best way to document a replication configuration.
Currently the documentation is done in Excel (this sucks), where each dB has a tab & each table is listed in the corresponding dB tab, with how it is replicated to/from the data center...etc.
What is the best way (dynamic creation would be GREAT) to do this?
I would suggest to look at data from system tables and use them for documentation
Which objects in the database are published?
Publish DB
SELECT * FROM sysarticles
SELECT * FROM syspublications
Distribution DB
Use Distribution
GO
SELECT * FROM distribution..mspublications
SubscriberDB
USE SubscriptionDB
SELECT * FROM MSsubscriptions
SELECT * FROM MSsubscriber_info
Hope it Helps.