If $A=(0,0,0)$ and $B=(1,0,0)$ are two points of a line in three dimensions, I think its equation should be $$\frac{x-0}{1}=\frac{y-0}{0}=\frac{z-0}{0}\tag1$$ according to the formula $$\frac{x-x_1}{x_2-x_1}=\frac{y-y_1}{y_2-y_1}=\frac{z-z_1}{z_2-z_1}\tag2$$
But (1) has zeros in the denominator. How to interpret the relation between $x$,$y$ and $z$ then?
I'll answer in general.. "how to find the equation of a line in $3$D given its two endpoints?". Let $(x_0,y_0,z_0)$ and $(x_1,y_1,z_1)$ two points. The line you're looking for is: $${\bf X}(t) = (x_0,y_0,z_0)+t(x_1-x_0,y_1-y_0,z_1-z_0), \quad t \in \Bbb R.$$ If you just want the segment, consider only $0 \leq t \leq 1$. Notice that ${\bf X}(0) = (x_0,y_0,z_0)$ and ${\bf X}(1) = (x_1,y_1,z_1)$.