Can someone give me a quick primer on DB2, as related to the next paragraph?
I am new to DB2 but mucho experienco with MySQL, SQL Server, etc. I am at a customer and my query on the AS400 is slooooooooow. I asked the local sysadmin about indices and primary keys... and there are none... on a table with 7 million rows. alllllllllrighteyyy then. so i want to ad one (an index on one column) to speed queries. i found the CRTLF command, whcih I think does what I want, but my understanding of it is that it requires a DDS file and member to run... and I don't know where that might be (and niether does the local sysadmin...).
So.... how do i put an index on one column in this table?
Is my understanding of DB2 and the CRTLF command correct?
thanks for the help. the only thing that could make this site better was if they served beer.
matt
I am new to DB2 but mucho experienco with MySQL, SQL Server, etc. I am at a customer and my query on the AS400 is slooooooooow. I asked the local sysadmin about indices and primary keys... and there are none... on a table with 7 million rows. alllllllllrighteyyy then. so i want to ad one (an index on one column) to speed queries. i found the CRTLF command, whcih I think does what I want, but my understanding of it is that it requires a DDS file and member to run... and I don't know where that might be (and niether does the local sysadmin...).
So.... how do i put an index on one column in this table?
Is my understanding of DB2 and the CRTLF command correct?
thanks for the help. the only thing that could make this site better was if they served beer.
matt





Comment