We present the Submillimeter Array (SMA) observations of molecular lines at 330 and 340?GHz toward G19.61 ? 0.23. The SMA observations have a spatial resolution of ~2'' and a bandpass of 2?? 2?GHz bandwidth. With the SMA data, we have detected 131 molecular transitions. Ninety-four molecular transitions from 17 species and their isotopomers are identified, including complex organic molecules and simple linear molecules. Most of the complex molecules (CH3OH, 13CH3OH, C2H5OH, HCOOCH3, HNCO, NH2CHO, CH3CN, and CH3CH2CN) have a sufficient number of transitions in this observation to allow analysis using the rotational temperature diagram method. The results from rotation temperature diagram fitting have shown that the complex nitrogen-bearing molecules have higher rotation temperatures (296-609 K) and lower column densities (6.5?? 1015-6.4?? 1016?cm?2). In contrast, the temperatures and column densities of the complex oxygen-bearing molecules range from 95 to 151 K, and from 1.1?? 1016 to 5.2?? 1017?cm?2, respectively. The H2 column density is estimated from the submillimeter continuum, and the fractional abundances of various species relative to H2 are calculated. The oxygen-bearing molecules have higher fractional abundances than those of the nitrogen-bearing molecules. The different gas temperatures and fractional abundances suggest a chemical differentiation between oxygen- and nitrogen-bearing molecules. The images of the spatial distribution of different species have shown that the oxygen-bearing and nitrogen-bearing molecules peak at different positions. Through comparing the rotation temperatures and fractional abundances with the spatial distributions of the molecules, we discuss possible chemical processes for producing the complex molecules, as well as nitrogen and oxygen differentiation in G19.61 ? 0.23.