1. A method of generating computer search keys for every atom in a chemical structure for searching chemical structures stored in a relational database, the method comprising the following steps: choosing a starting atom in an input chemical structure; adding a code for said starting atom to a key string; ordering bonds that are adjacent to said starting atom; and adding codes for said ordered bonds to said key string whereby a search key is generated based upon said codes for said ordered bonds and atoms.